restore powerpc AIX bootstrap

Message ID
State New
Headers show

Commit Message

Olivier Hainque Oct. 8, 2010, 9:09 a.m.
Broken by the changes issued for PR 45837:

#define TARGET_AIX_OS 0

then aix.h
#define TARGET_AIX_OS 1

../src/gcc/config/rs6000/aix.h:29:0: error: "TARGET_AIX_OS" redefined [-Werror]
../src/gcc/config/rs6000/rs6000.h:50:0: ... location of the previous definition

Fixed by prepending #undef in aix.h

OK ?

Thanks in advance,


2010-10-08  Olivier Hainque  <>

	* config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.


Index: aix.h
--- config/rs6000/aix.h	(revision 165110)
+++ config/rs6000/aix.h	(working copy)
@@ -26,6 +26,7 @@ 
 /* 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.  */
+#undef  TARGET_AIX_OS
 #define TARGET_AIX_OS 1
 /* AIX always has a TOC.  */