This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][ARM] bootstrap/38523 arm build fails to link cc1-dummy / configure tweak for stage1
- From: Laurent GUERBY <laurent at guerby dot net>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, Paolo Bonzini <bonzini at gnu dot org>, Richard Guenther <richard dot guenther at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>, Richard Earnshaw <rearnsha at arm dot com>
- Date: Thu, 08 Jan 2009 18:25:48 +0100
- Subject: [PATCH][ARM] bootstrap/38523 arm build fails to link cc1-dummy / configure tweak for stage1
As discussed on:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38523
There's an issue of stage1 cc1 size on arm-linux-gnueabi that causes a
link failure. There are two known workarounds: build stage1 with -O1 or
configure with --enable-checking=release. The first one increase
bootstrap time by 25% relative to the second one, so
I propose the following patch, tested on arm-linux-gnueabi (stage2
running).
Ok to commit? Or is there a better way?
Laurent
2009-01-05 Laurent GUERBY <laurent@guerby.net>
PR bootstrap/38523
* configure.ac: Force stage1 checking for arm.
* configure: Regenerate.
Index: configure.ac
===================================================================
--- configure.ac (revision 143046)
+++ configure.ac (working copy)
@@ -2904,6 +2904,9 @@
else
stage1_checking=--enable-checking=$enable_checking,types
fi])
+case "${host}" in
+ arm*-*-linux-gnueabi) stage1_checking=--enable-checking=release;;
+esac
AC_SUBST(stage1_checking)
# Enable -Werror in bootstrap stage2 and later.