diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-02 14:09:02 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-02 14:09:02 +0000 |
commit | d152ae90de534a2cf59133d8b664287092eb0c03 (patch) | |
tree | aabfe9f5bcb3222582ec91f9b6bdad59368d60f9 | |
parent | 103dfb1064d6066be8e5dab587a7d6c8fdf6545a (diff) | |
download | gcc-d152ae90de534a2cf59133d8b664287092eb0c03.tar.gz |
PR target/55175
* config/i386/sfp-exceptions.c: Guard with _SOFT_FLOAT.
* config/i386/sfp-machine.h: Guard exception handling
code with _SOFT_FLOAT.
* config/i386/32/sfp-machine.h: Guard rounding handling
code with _SOFT_FLOAT.
* config/i386/64/sfp-machine.h: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193095 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libgcc/ChangeLog | 12 | ||||
-rw-r--r-- | libgcc/config/i386/32/sfp-machine.h | 2 | ||||
-rw-r--r-- | libgcc/config/i386/64/sfp-machine.h | 2 | ||||
-rw-r--r-- | libgcc/config/i386/sfp-exceptions.c | 2 | ||||
-rw-r--r-- | libgcc/config/i386/sfp-machine.h | 2 |
5 files changed, 19 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 6be90f579f2..87e8a27e855 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,13 @@ +2012-11-02 Uros Bizjak <ubizjak@gmail.com> + + PR target/55175 + * config/i386/sfp-exceptions.c: Guard with _SOFT_FLOAT. + * config/i386/sfp-machine.h: Guard exception handling + code with _SOFT_FLOAT. + * config/i386/32/sfp-machine.h: Guard rounding handling + code with _SOFT_FLOAT. + * config/i386/64/sfp-machine.h: Ditto. + 2012-10-31 Joel Sherrill <joel.sherrill@oarcorp.com> * config.host (m32r-*-rtems*): Include crtinit.o and crtfinit.o @@ -196,7 +206,7 @@ 2012-09-01 Mark Kettenis <kettenis@openbsd.org> * config.host (x86_64-*-openbsd*): New target. - + 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com> * config/mips/crtfastmath.c (set_fast_math): Add 'nomips16' diff --git a/libgcc/config/i386/32/sfp-machine.h b/libgcc/config/i386/32/sfp-machine.h index 474ade0d503..d81d9a366ca 100644 --- a/libgcc/config/i386/32/sfp-machine.h +++ b/libgcc/config/i386/32/sfp-machine.h @@ -77,6 +77,7 @@ #define _FP_NANFRAC_E _FP_QNANBIT_E, 0, 0, 0 #define _FP_NANFRAC_Q _FP_QNANBIT_Q, 0, 0, 0 +#ifndef _SOFT_FLOAT #define FP_RND_NEAREST 0 #define FP_RND_ZERO 0xc00 #define FP_RND_PINF 0x800 @@ -91,3 +92,4 @@ do { \ __asm__ __volatile__ ("fnstcw\t%0" : "=m" (_fcw)); \ } while (0) +#endif diff --git a/libgcc/config/i386/64/sfp-machine.h b/libgcc/config/i386/64/sfp-machine.h index fc9a38af696..21c9edc3808 100644 --- a/libgcc/config/i386/64/sfp-machine.h +++ b/libgcc/config/i386/64/sfp-machine.h @@ -18,6 +18,7 @@ typedef unsigned int UTItype __attribute__ ((mode (TI))); #define _FP_NANFRAC_E _FP_QNANBIT_E, 0 #define _FP_NANFRAC_Q _FP_QNANBIT_Q, 0 +#ifndef _SOFT_FLOAT #define FP_RND_NEAREST 0 #define FP_RND_ZERO 0x6000 #define FP_RND_PINF 0x4000 @@ -32,3 +33,4 @@ typedef unsigned int UTItype __attribute__ ((mode (TI))); do { \ __asm__ __volatile__ ("%vstmxcsr\t%0" : "=m" (_fcw)); \ } while (0) +#endif diff --git a/libgcc/config/i386/sfp-exceptions.c b/libgcc/config/i386/sfp-exceptions.c index 0d5c2e0e3f5..d7e2bf7d428 100644 --- a/libgcc/config/i386/sfp-exceptions.c +++ b/libgcc/config/i386/sfp-exceptions.c @@ -21,6 +21,7 @@ * <http://www.gnu.org/licenses/>. */ +#ifndef _SOFT_FLOAT #include "sfp-machine.h" struct fenv @@ -88,3 +89,4 @@ __sfp_handle_exceptions (int _fex) asm volatile ("fwait"); } }; +#endif diff --git a/libgcc/config/i386/sfp-machine.h b/libgcc/config/i386/sfp-machine.h index 01bf14ffbb0..9afbbcbed03 100644 --- a/libgcc/config/i386/sfp-machine.h +++ b/libgcc/config/i386/sfp-machine.h @@ -40,6 +40,7 @@ typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__))); R##_c = FP_CLS_NAN; \ } while (0) +#ifndef _SOFT_FLOAT #define FP_EX_INVALID 0x01 #define FP_EX_DENORM 0x02 #define FP_EX_DIVZERO 0x04 @@ -56,6 +57,7 @@ void __sfp_handle_exceptions (int); } while (0); #define FP_ROUNDMODE (_fcw & FP_RND_MASK) +#endif #define __LITTLE_ENDIAN 1234 #define __BIG_ENDIAN 4321 |