[RS6000] PR91135, __linux__ not defined with -mcall-aixdesc on 9.x and ppc64
authorAlan Modra <amodra@gmail.com>
Sun, 28 Jul 2019 09:29:11 +0000 (18:59 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Sun, 28 Jul 2019 09:29:11 +0000 (18:59 +0930)
This patch makes the obvious fix for PR91135, and deletes extraneous
copies of GNU_USER_TARGET_D_OS_VERSIONS that appear in rs6000/linux.h
and rs6000/linux64.h.  Since all configurations using either of these
files also include linux.h there is no need to duplicate the macro.

PR target/91135
* config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
define.
* config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
(GNU_USER_TARGET_D_OS_VERSIONS): Don't define.

From-SVN: r273854

gcc/ChangeLog
gcc/config/rs6000/linux.h
gcc/config/rs6000/linux64.h

index d005cd965bac0153e374696109c208d5de43cc84..34120003c5fe5931d3c66287c8f5a1656709d0f8 100644 (file)
@@ -1,3 +1,12 @@
+2019-07-28  Alan Modra  <amodra@gmail.com>
+
+       PR target/91135
+       * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
+       define.
+       * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
+       GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
+       (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
+
 2019-07-28  Alan Modra  <amodra@gmail.com>
 
        PR target/91050
index 96b97877989bea8fd1a4c5618f698fb82864b6a0..ffceb32bf653c7f60f33a63c76d7175e7b637461 100644 (file)
     }                                                  \
   while (0)
 
-#define GNU_USER_TARGET_D_OS_VERSIONS()                \
-    do {                                       \
-       builtin_version ("linux");              \
-       if (OPTION_GLIBC)                       \
-         builtin_version ("CRuntime_Glibc");   \
-       else if (OPTION_UCLIBC)                 \
-         builtin_version ("CRuntime_UClibc");  \
-       else if (OPTION_BIONIC)                 \
-         builtin_version ("CRuntime_Bionic");  \
-       else if (OPTION_MUSL)                   \
-         builtin_version ("CRuntime_Musl");    \
-    } while (0)
-
 #undef CPP_OS_DEFAULT_SPEC
 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux)"
 
index ba5f640efc84a81cdba9d4e4a219c106ed88441b..4d329b544ad98d56ef25217ddb07cdef419df86d 100644 (file)
@@ -372,7 +372,8 @@ extern int dot_symbols;
 #define TARGET_OS_CPP_BUILTINS()                       \
   do                                                   \
     {                                                  \
-      if (strcmp (rs6000_abi_name, "linux") == 0)      \
+      if (strcmp (rs6000_abi_name, "linux") == 0       \
+         || strcmp (rs6000_abi_name, "aixdesc") == 0)  \
        GNU_USER_TARGET_OS_CPP_BUILTINS();              \
       if (TARGET_64BIT)                                        \
        {                                               \
@@ -396,19 +397,6 @@ extern int dot_symbols;
     }                                                  \
   while (0)
 
-#define GNU_USER_TARGET_D_OS_VERSIONS()                \
-    do {                                       \
-       builtin_version ("linux");              \
-       if (OPTION_GLIBC)                       \
-         builtin_version ("CRuntime_Glibc");   \
-       else if (OPTION_UCLIBC)                 \
-         builtin_version ("CRuntime_UClibc");  \
-       else if (OPTION_BIONIC)                 \
-         builtin_version ("CRuntime_Bionic");  \
-       else if (OPTION_MUSL)                   \
-         builtin_version ("CRuntime_Musl");    \
-    } while (0)
-
 #undef  CPP_OS_DEFAULT_SPEC
 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux) %(include_extra)"