apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Ghent <da...@elemental.org>
Subject [PATCH] fix the choosing of SPARC optimizations
Date Thu, 21 Feb 2002 21:10:33 GMT

Currently, configure.in makes an assumption that we are compiling for a
UltraSPARC CPU when compiling on a Sun/sparc box.

Of course, code with the SPARCv8+ instructions will not run on CPUs that
do not support them, and these include all our old SPARC friends.

This patch adds checking (via 'uname -m') for the arch we are running on.
If it's the older sparc systems (sun4, sun4c, sun4m, sun4d, sun4t) then do
not force the "-xarch=v8plus" flag for 'as'. If it is something other than
the aformentioned (sun4u, etc), include it.

/dale

Mime
View raw message