From: Daniel Jacobowitz <drow@false.org>
To: gcc-patches@gcc.gnu.org
Subject: Fix i686-linux --enable-targets=all
Date: Mon, 06 Aug 2007 13:37:00 -0000 [thread overview]
Message-ID: <20070806133655.GA30770@caradoc.them.org> (raw)
Right now all tests fail if you build an i686-linux compiler with
--enable-targets=all and test the -m64 multilib, while using bleeding
edge binutils. This was already fixed for x86_64, but different
arrangement of t-* fragments means that the fix didn't cover
i686-linux.
Is this OK? I have not been able to get my build server to bootstrap
an --enable-targets=all compiler due to the different way Debian /
Ubuntu handle multiple architecture support, but I did build 64-bit
libgcc and verify that crtend.o no longer has a zero terminator
followed by some unwind information.
--
Daniel Jacobowitz
CodeSourcery
2007-08-06 Daniel Jacobowitz <dan@codesourcery.com>
* config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Add
-fno-asynchronous-unwind-tables.
* config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
* gcc/config.gcc (x86_64-*-linux*): Use i386/t-crtstuff.
Index: gcc/config/i386/t-crtstuff
===================================================================
--- gcc/config/i386/t-crtstuff (revision 127159)
+++ gcc/config/i386/t-crtstuff (working copy)
@@ -1,2 +1,5 @@
# The pushl in CTOR initialization interferes with frame pointer elimination.
-CRTSTUFF_T_CFLAGS = -fno-omit-frame-pointer
+# crtend*.o cannot be compiled without -fno-asynchronous-unwind-tables,
+# because then __FRAME_END__ might not be the last thing in .eh_frame
+# section.
+CRTSTUFF_T_CFLAGS = -fno-omit-frame-pointer -fno-asynchronous-unwind-tables
Index: gcc/config/i386/t-linux64
===================================================================
--- gcc/config/i386/t-linux64 (revision 127159)
+++ gcc/config/i386/t-linux64 (working copy)
@@ -17,9 +17,3 @@ EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o
softfp_wrap_start := '\#ifdef __x86_64__'
softfp_wrap_end := '\#endif'
-
-# The pushl in CTOR initialization interferes with frame pointer elimination.
-# crtend*.o cannot be compiled without -fno-asynchronous-unwind-tables,
-# because then __FRAME_END__ might not be the last thing in .eh_frame
-# section.
-CRTSTUFF_T_CFLAGS = -fno-omit-frame-pointer -fno-asynchronous-unwind-tables
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc (revision 127159)
+++ gcc/config.gcc (working copy)
@@ -1166,7 +1166,7 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu
x86_64-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h" ;;
x86_64-*-knetbsd*-gnu) tm_file="${tm_file} knetbsd-gnu.h" ;;
esac
- tmake_file="${tmake_file} i386/t-linux64 i386/t-crtpc i386/t-crtfm i386/t-fprules-softfp64 soft-fp/t-softfp t-dfprules"
+ tmake_file="${tmake_file} i386/t-linux64 i386/t-crtstuff i386/t-crtpc i386/t-crtfm i386/t-fprules-softfp64 soft-fp/t-softfp t-dfprules"
;;
i[34567]86-*-gnu*)
;;
next reply other threads:[~2007-08-06 13:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 13:37 Daniel Jacobowitz [this message]
2007-08-06 13:39 ` Andrew Pinski
2007-08-06 13:41 ` H.J. Lu
2007-08-06 13:51 ` Daniel Jacobowitz
2007-08-06 14:13 ` H.J. Lu
2007-08-06 14:24 ` Daniel Jacobowitz
2007-08-06 14:56 ` H.J. Lu
2007-08-06 15:07 ` Daniel Jacobowitz
2007-08-06 16:05 ` Paolo Bonzini
2007-08-06 16:11 ` Daniel Jacobowitz
2007-08-06 16:29 ` H.J. Lu
2007-08-06 18:34 Paolo Bonzini
2007-08-06 19:53 ` H.J. Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070806133655.GA30770@caradoc.them.org \
--to=drow@false.org \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).