This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: fix FreeBSD/sparc64 bootstrap failure
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Eric Botcazou <ebotcazou at libertysurf dot fr>,Loren James Rittle <rittle at labs dot mot dot com>
- Date: Sat, 30 Apr 2005 22:45:18 +0200 (CEST)
- Subject: PATCH: fix FreeBSD/sparc64 bootstrap failure
Eric was so kind to track this down and fix it, and both he (as SPARC)
and Loren (as FreeBSD) maintainer approved this.
I have not been able to perform a full testsuite run with this patch,
but without it bootstrap failed on FreeBSD 5-CURRENT/sparc64 whereas
it succeeds with this patch.
For now this is on mainline, but the 4.0 branch has the same problem,
and I plan to apply this patch there a bit later.
Gerald
2005-04-30 Eric Botcazou <ebotcazou@libertysurf.fr>
PR bootstrap/20633
* config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
Index: config/freebsd-spec.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/freebsd-spec.h,v
retrieving revision 1.13
diff -u -3 -p -r1.13 freebsd-spec.h
--- config/freebsd-spec.h 23 Jan 2005 15:05:37 -0000 1.13
+++ config/freebsd-spec.h 30 Apr 2005 20:37:07 -0000
@@ -78,6 +78,7 @@ Boston, MA 02111-1307, USA. */
#define FBSD_CPP_SPEC " \
%(cpp_cpu) \
+ %(cpp_arch) \
%{fPIC|fpic|fPIE|fpie:-D__PIC__ -D__pic__} \
%{posix:-D_POSIX_SOURCE}"