This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] fix bootstrap for powerpc FreeBSD
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 07 Oct 2009 22:14:01 +0200
- Subject: [patch] fix bootstrap for powerpc FreeBSD
Hi,
the attached patch fixes bootstrap for PowerPC FreeBSD on trunk.
FreeBSD still uses binutils-2.15 and there is no update
available/possible. But this is another story. Thanks RMS. (My personal
opinion)
Is this ok for trunk, after bootstrap completed & tests?
2009-10-07 Andreas Tobler <a.tobler@schweiz.org>
PR bootstrap/37739
* config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
Index: config.host
===================================================================
--- config.host (revision 152538)
+++ config.host (working copy)
@@ -130,7 +130,7 @@
;;
esac
case ${host} in
- *-*-linux* )
+ *-*-linux* | *-*-freebsd*)
if test "${GCC}:${ac_cv_sizeof_long}" = yes:4; then
# On powerpc*-*-linux* use -Wl,--relax to link cc1,
# if ld is new enough, otherwise force -O1 in CFLAGS.