From 1ec380e5f5ec14f7e073ea2b48f6b0ef9cf2a439 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Wed, 21 May 2014 01:24:05 +0000 Subject: [PATCH] re PR libgcc/60166 (ARM default NAN encoding violates EABI) PR libgcc/60166 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANFRAC_S) (_FP_NANFRAC_D, _FP_NANSIGN_Q): Set the quiet bit. From-SVN: r210668 --- libgcc/ChangeLog | 6 ++++++ libgcc/config/arm/sfp-machine.h | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 13036945556..c912c8c7b8a 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2014-05-21 Maciej W. Rozycki + + PR libgcc/60166 + * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANFRAC_S) + (_FP_NANFRAC_D, _FP_NANSIGN_Q): Set the quiet bit. + 2014-05-13 Bernd Edlinger * unwind-seh.c (_Unwind_Backtrace): Uncommented, finished diff --git a/libgcc/config/arm/sfp-machine.h b/libgcc/config/arm/sfp-machine.h index 4f2b15d7e55..b7b5171e702 100644 --- a/libgcc/config/arm/sfp-machine.h +++ b/libgcc/config/arm/sfp-machine.h @@ -21,10 +21,10 @@ typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__))); /* According to RTABI, QNAN is only with the most significant bit of the significand set, and all other significand bits zero. */ -#define _FP_NANFRAC_H 0 -#define _FP_NANFRAC_S 0 -#define _FP_NANFRAC_D 0, 0 -#define _FP_NANFRAC_Q 0, 0, 0, 0 +#define _FP_NANFRAC_H _FP_QNANBIT_H +#define _FP_NANFRAC_S _FP_QNANBIT_S +#define _FP_NANFRAC_D _FP_QNANBIT_D, 0 +#define _FP_NANFRAC_Q _FP_QNANBIT_Q, 0, 0, 0 #define _FP_NANSIGN_H 0 #define _FP_NANSIGN_S 0 #define _FP_NANSIGN_D 0