]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR target/45837: Make powerpc build again
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Thu, 30 Sep 2010 19:52:57 +0000 (19:52 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Thu, 30 Sep 2010 19:52:57 +0000 (19:52 +0000)
From-SVN: r164764

gcc/ChangeLog
gcc/config/rs6000/aix.h
gcc/config/rs6000/option-defaults.h
gcc/config/rs6000/rs6000.h

index 9f3bcccceb99350d833d37577dd104883a430d65..7795da141d5318f764962de82f09bc22b4f6d6a6 100644 (file)
@@ -1,3 +1,13 @@
+2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       PR target/45837
+       * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
+       * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
+       defined.
+       * config/rs6000/option-defaults.h (toplevel): Change #if
+       TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
+       global option changes.
+
 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
 
        * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
index f9004b4e6f05d2f2d7e7b7cc3c169752eb4402f3..b4134e6214eaf27e1c66e461ae555e24b08324a5 100644 (file)
 #undef  TARGET_AIX
 #define TARGET_AIX 1
 
+/* Linux64.h wants to redefine TARGET_AIX based on -m64, but it can't be used
+   in the #if conditional in options-default.h, so provide another macro.  */
+#define TARGET_AIX_OS 1
+
 /* AIX always has a TOC.  */
 #define TARGET_NO_TOC 0
 #define TARGET_TOC 1
index 7e117d731da87e3fe54d4e5ee48802ceef13ef00..eb39e0d02d2495ec128e2633e6085713f9503baa 100644 (file)
@@ -27,7 +27,7 @@
 /* This header needs to be included after any other headers affecting
    TARGET_DEFAULT.  */
 
-#if TARGET_AIX
+#if TARGET_AIX_OS
 #define OPT_64 "maix64"
 #define OPT_32 "maix32"
 #else
index a4f9d4b082f634b06048387f1ee30e7b1612b2d0..c2f47f2c12c0215fafd9baedbb45b1cc198051e3 100644 (file)
 #define TARGET_AIX 0
 #endif
 
+#ifndef TARGET_AIX_OS
+#define TARGET_AIX_OS 0
+#endif
+
 /* Control whether function entry points use a "dot" symbol when
    ABI_AIX.  */
 #define DOT_SYMBOLS 1