This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] fix bootstrap on powerpc targets which do not include svr4.h


Hello all,

This patch: http://gcc.gnu.org/ml/gcc-cvs/2008-10/msg00471.html
broke bootstrap on powerpc targets which do not include svr4.h.

SVR4_ASM_SPEC is never defined.

The appended patch fixes that and bootstrap completes on powerpc-*freebsd.

Also tested on linux-ppc.

Ok for trunk?

Thanks,
Andreas

2008-11-16 Andreas Tobler <a.tobler@schweiz.org>

	* config/rs6000/sysv4.h: Define SVR4_ASM_SPEC empty for targets which
	do not include svr4.h.


Index: config/rs6000/sysv4.h =================================================================== --- config/rs6000/sysv4.h (revision 141926) +++ config/rs6000/sysv4.h (working copy) @@ -582,6 +582,12 @@ #endif

 /* Pass various options to the assembler.  */
+/* For targets which do not include svr4.h define SVR4_ASM_SPEC as empty.
+   These are powerpc-*-freebsd*, powerpc-*-netbsd* and powerpc-*-lynxos*.
+*/
+#ifndef SVR4_ASM_SPEC
+#define SVR4_ASM_SPEC ""
+#endif
 /* Override svr4.h definition.  */
 #undef	ASM_SPEC
 #define	ASM_SPEC "%(asm_cpu) \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]