aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2004-03-10 18:16:25 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2004-03-10 13:16:25 -0500
commit35ae04ba17998cb310c5be0be2331a0658c70e89 (patch)
tree53e73b9ff8591e57f902c77f902c2553a063f34f /gcc
parentf7b48371a97cc9e5c84bef466dfc21346a70404a (diff)
downloadgcc-35ae04ba17998cb310c5be0be2331a0658c70e89.zip
gcc-35ae04ba17998cb310c5be0be2331a0658c70e89.tar.gz
gcc-35ae04ba17998cb310c5be0be2331a0658c70e89.tar.bz2
rs6000-c.c (rs6000_cpu_cpp_builtins): Define __LONGDOUBLE128 on AIX.
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define __LONGDOUBLE128 on AIX. From-SVN: r79268
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000-c.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a06f7c7..0084f63 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-10 David Edelsohn <edelsohn@gnu.org>
+
+ * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
+ __LONGDOUBLE128 on AIX.
+
2004-03-10 Andrew Haley <aph@redhat.com>
PR optimization/14381
diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c
index 5d36d5d..646b0c2 100644
--- a/gcc/config/rs6000/rs6000-c.c
+++ b/gcc/config/rs6000/rs6000-c.c
@@ -113,7 +113,11 @@ rs6000_cpu_cpp_builtins (cpp_reader *pfile)
RS6000_CPU_CPP_ENDIAN_BUILTINS();
if (TARGET_LONG_DOUBLE_128)
- builtin_define ("__LONG_DOUBLE_128__");
+ {
+ builtin_define ("__LONG_DOUBLE_128__");
+ if (TARGET_AIX && TARGET_XCOFF)
+ builtin_define ("__LONGDOUBLE128");
+ }
switch (rs6000_current_abi)
{