diff options
author | David S. Miller <davem@redhat.com> | 2002-04-03 15:48:39 -0800 |
---|---|---|
committer | David S. Miller <davem@gcc.gnu.org> | 2002-04-03 15:48:39 -0800 |
commit | 61ab52602318de76659b6916ae3d937d57a32adb (patch) | |
tree | 5b18dba007abb58acc9b33d92bab13c1cb662e66 /gcc | |
parent | dffa4176aec81e6b81d355d99732be709d3bc8fe (diff) | |
download | gcc-61ab52602318de76659b6916ae3d937d57a32adb.zip gcc-61ab52602318de76659b6916ae3d937d57a32adb.tar.gz gcc-61ab52602318de76659b6916ae3d937d57a32adb.tar.bz2 |
crtfastmath.c (FPRS_NS): Get it right for little-endian.
2002-04-03 David S. Miller <davem@redhat.com>
* config/sparc/crtfastmath.c (FPRS_NS): Get it right for
little-endian.
(set_fast_math): Correct 'fsr' type.
From-SVN: r51824
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/sparc/crtfastmath.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe4963f..f44264b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-04-03 David S. Miller <davem@redhat.com> + + * config/sparc/crtfastmath.c (FPRS_NS): Get it right for + little-endian. + (set_fast_math): Correct 'fsr' type. + 2002-04-03 Richard Henderson <rth@redhat.com> PR opt/3569 diff --git a/gcc/config/sparc/crtfastmath.c b/gcc/config/sparc/crtfastmath.c index a0824a1..d0100d7 100644 --- a/gcc/config/sparc/crtfastmath.c +++ b/gcc/config/sparc/crtfastmath.c @@ -32,12 +32,16 @@ * the executable file might be covered by the GNU General Public License. */ +#if defined (__LITTLE_ENDIAN__) || defined(__LITTLE_ENDIAN_DATA__) +#define FPRS_NS (1 << 14) /* Non-Standard fpu results */ +#else #define FPRS_NS (1 << 22) /* Non-Standard fpu results */ +#endif static void __attribute__((constructor)) set_fast_math (void) { - unsigned long fsr; + unsigned int fsr; /* This works for the 64-bit case because, even if 32-bit ld/st of the fsr register modified the upper 32-bit, the only thing up there |