From: Uros Bizjak Date: Fri, 2 Nov 2012 14:09:02 +0000 (+0100) Subject: re PR target/55175 (i386/sfp-exceptions.c:52:7: error: impossible constraint in ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73edb27727ca3df30404e36295e5ead26a52bc56;p=gcc.git re PR target/55175 (i386/sfp-exceptions.c:52:7: error: impossible constraint in 'asm') 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. From-SVN: r193095 --- 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 + + 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 * config.host (m32r-*-rtems*): Include crtinit.o and crtfinit.o @@ -196,7 +206,7 @@ 2012-09-01 Mark Kettenis * config.host (x86_64-*-openbsd*): New target. - + 2012-08-29 Chung-Lin Tang * 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 @@ * . */ +#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