From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19598 invoked by alias); 6 Aug 2007 13:37:06 -0000 Received: (qmail 18902 invoked by uid 22791); 6 Aug 2007 13:37:01 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 06 Aug 2007 13:36:58 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 854A5982C5 for ; Mon, 6 Aug 2007 13:36:58 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 3C19C982AD for ; Mon, 6 Aug 2007 13:36:58 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1II2lU-00080c-0x for gcc-patches@gcc.gnu.org; Mon, 06 Aug 2007 09:36:56 -0400 Date: Mon, 06 Aug 2007 13:37:00 -0000 From: Daniel Jacobowitz To: gcc-patches@gcc.gnu.org Subject: Fix i686-linux --enable-targets=all Message-ID: <20070806133655.GA30770@caradoc.them.org> Mail-Followup-To: gcc-patches@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00320.txt.bz2 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 * 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*) ;;