This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] fix bootstrap on powerpc targets which do not include svr4.h
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 16 Nov 2008 21:55:01 +0100
- Subject: [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) \