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
This commit is contained in:
parent
f99ffaa350
commit
73edb27727
5 changed files with 19 additions and 1 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue