From df7c57feee9e3d58d1e03b79569a20c3ec065d74 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Wed, 21 May 2014 02:15:50 +0000 Subject: [PATCH] backport: re PR libgcc/60166 (ARM default NAN encoding violates EABI) Backport from mainline 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. From-SVN: r210670 --- libgcc/ChangeLog | 9 +++++++++ libgcc/config/arm/sfp-machine.h | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 573558c4c266..bdc25bb96e48 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,12 @@ +2014-05-21 Maciej W. Rozycki + + Backport from mainline + 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-04-04 Bill Schmidt Backport from mainline r204808: diff --git a/libgcc/config/arm/sfp-machine.h b/libgcc/config/arm/sfp-machine.h index 8591ab439e99..f29b23eeb48d 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 -- 2.47.2