From patchwork Wed Sep 29 00:55:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 66032 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 2AE43B6EED for ; Wed, 29 Sep 2010 10:55:21 +1000 (EST) Received: (qmail 8272 invoked by alias); 29 Sep 2010 00:55:18 -0000 Received: (qmail 8260 invoked by uid 22791); 29 Sep 2010 00:55:17 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Sep 2010 00:55:12 +0000 Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id o8T0tAoD028841 for ; Tue, 28 Sep 2010 17:55:10 -0700 Received: from pva18 (pva18.prod.google.com [10.241.209.18]) by kpbe12.cbf.corp.google.com with ESMTP id o8T0sh4S022842 for ; Tue, 28 Sep 2010 17:55:09 -0700 Received: by pva18 with SMTP id 18so57797pva.30 for ; Tue, 28 Sep 2010 17:55:09 -0700 (PDT) Received: by 10.115.14.6 with SMTP id r6mr1004239wai.121.1285721709440; Tue, 28 Sep 2010 17:55:09 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id s5sm13488368wak.12.2010.09.28.17.55.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Sep 2010 17:55:08 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org Subject: PATCH COMMITTED: Try again to get libgcc -fsplit-stack in sync Date: Tue, 28 Sep 2010 17:55:01 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This is another attempt to get the libgcc build in sync with gcc with respect to -fsplit-stack. This changes the test in the libgcc configure script to match the test done in ix86_supports_split_stack. Bootstrapped on x86_64-unknown-linux-gnu. Committed to mainline. Ian 2010-09-28 Ian Lance Taylor * configure.ac: Adjust CFI test to test assembler directly rather than checking gcc preprocessor macro. * configure: Rebuild. Index: configure.ac =================================================================== --- configure.ac (revision 164696) +++ configure.ac (working copy) @@ -137,9 +137,14 @@ AC_SUBST(fixed_point) # Check for assembler CFI support. AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi], - [AC_COMPILE_IFELSE([int i = __GCC_HAVE_DWARF2_CFI_ASM;], - [libgcc_cv_cfi=yes], - [libgcc_cv_cfi=no])]) + [AC_COMPILE_IFELSE( +[asm("\n\ + .text\n\ + .cfi_startproc\n\ + .cfi_personality 0, symbol\n\ + .cfi_endproc");], + [libgcc_cv_cfi=yes], + [libgcc_cv_cfi=no])]) # Check 32bit or 64bit for x86. case ${host} in