This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] fix build of gcc 4.4 on GNU/kFreeBSD i386 and x86_64
- From: Aurelien Jarno <aurelien at aurel32 dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Mar 2009 00:00:05 +0100
- Subject: [PATCH] fix build of gcc 4.4 on GNU/kFreeBSD i386 and x86_64
Hi,
Revision 137369 has moved code from a GNU/Linux and GNU/kFreeBSD case to
a GNU/Linux only case. This breaks the build of gcc on GNU/kFreeBSD i386
and x86_64. The patch below fixes the problem by adding the missing
parts. Given it's a regression from gcc 4.3, I think it should be
applied to both trunk and gcc 4.4 branch.
Regards,
Aurelien
gcc/
2009-03-24 Aurelien Jarno <aurelien@aurel32.net>
* config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
libgcc/
2009-03-24 Aurelien Jarno <aurelien@aurel32.net>
* config.host: Add i386/${host_address}/t-fprules-softfp to
tmake_file for i[34567]86-*-kfreebsd*-gnu, x86_64-*-kfreebsd*-gnu*.
Index: libgcc/config.host
===================================================================
--- libgcc/config.host (revision 145035)
+++ libgcc/config.host (working copy)
@@ -591,6 +591,7 @@
case ${host} in
i[34567]86-*-darwin* | x86_64-*-darwin* | \
+ i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
i[34567]86-*-linux* | x86_64-*-linux*)
if test "${host_address}" = 32; then
tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp"
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc (revision 145000)
+++ gcc/config.gcc (working copy)
@@ -3055,7 +3055,7 @@
i[34567]86-*-darwin* | x86_64-*-darwin*)
tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp"
;;
- i[34567]86-*-linux* | x86_64-*-linux*)
+ i[34567]86-*-linux* | x86_64-*-linux* | i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu)
tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp i386/t-linux"
;;
ia64*-*-linux*)
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net