Patchwork restore powerpc AIX bootstrap

login
register
mail settings
Submitter Olivier Hainque
Date Oct. 8, 2010, 9:09 a.m.
Message ID <20101008090926.GA30229@cardhu.act-europe.fr>
Download mbox | patch
Permalink /patch/67135/
State New
Headers show

Comments

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

rs6000.h
#ifndef TARGET_AIX_OS
#define TARGET_AIX_OS 0
#endif

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,

Olivier

2010-10-08  Olivier Hainque  <hainque@adacorec.com>

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

Patch

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.  */