aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2018-10-12 21:25:46 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2018-10-12 21:25:46 +0000
commit87f918e3803ff83d672b4b5272dcb1264409ad7c (patch)
tree61f869a4c9740f4ff161e6d17b0aab1a142597b9
parentfe65151b14f5f43213ffac7f20303bfbd6a2d1c8 (diff)
downloadgcc-87f918e3803ff83d672b4b5272dcb1264409ad7c.zip
gcc-87f918e3803ff83d672b4b5272dcb1264409ad7c.tar.gz
gcc-87f918e3803ff83d672b4b5272dcb1264409ad7c.tar.bz2
tighten the toplevel guard on ibm-ldouble.c
2018-10-12 Olivier Hainque <hainque@adacore.com> * config/rs6000/ibm-ldouble.c: Augment the toplevel guard with defined (__FLOAT128_TYPE__) || defined (__LONG_DOUBLE_128__). From-SVN: r265135
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/config/rs6000/ibm-ldouble.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index bfdefb6..1883640 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-12 Olivier Hainque <hainque@adacore.com>
+
+ * config/rs6000/ibm-ldouble.c: Augment the toplevel guard with
+ defined (__FLOAT128_TYPE__) || defined (__LONG_DOUBLE_128__).
+
2018-10-08 Paul Koning <ni1d@arrl.net>
* config/pdp11/t-pdp11: Remove -mfloat32 switch.
diff --git a/libgcc/config/rs6000/ibm-ldouble.c b/libgcc/config/rs6000/ibm-ldouble.c
index 9b9e94c..29f26c0 100644
--- a/libgcc/config/rs6000/ibm-ldouble.c
+++ b/libgcc/config/rs6000/ibm-ldouble.c
@@ -46,7 +46,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
the lower numbered register or lower addressed memory. */
#if (defined (__MACH__) || defined (__powerpc__) || defined (_AIX)) \
- && !defined (__rtems__)
+ && !defined (__rtems__) \
+ && (defined (__LONG_DOUBLE_128__) || defined (__FLOAT128_TYPE__))
#define fabs(x) __builtin_fabs(x)
#define isless(x, y) __builtin_isless (x, y)