From patchwork Tue Sep 28 18:26:03 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: 66012 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 01BD6B7150 for ; Wed, 29 Sep 2010 04:26:20 +1000 (EST) Received: (qmail 11545 invoked by alias); 28 Sep 2010 18:26:17 -0000 Received: (qmail 11537 invoked by uid 22791); 28 Sep 2010 18:26:16 -0000 X-SWARE-Spam-Status: No, hits=-2.0 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) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Sep 2010 18:26:10 +0000 Received: from kpbe20.cbf.corp.google.com (kpbe20.cbf.corp.google.com [172.25.105.84]) by smtp-out.google.com with ESMTP id o8SIQ7n6002461 for ; Tue, 28 Sep 2010 11:26:07 -0700 Received: from pwi10 (pwi10.prod.google.com [10.241.219.10]) by kpbe20.cbf.corp.google.com with ESMTP id o8SIPsDd003156 for ; Tue, 28 Sep 2010 11:26:06 -0700 Received: by pwi10 with SMTP id 10so1917431pwi.20 for ; Tue, 28 Sep 2010 11:26:05 -0700 (PDT) Received: by 10.142.221.11 with SMTP id t11mr375125wfg.13.1285698365676; Tue, 28 Sep 2010 11:26:05 -0700 (PDT) Received: from coign.google.com (dhcp-172-22-123-203.mtv.corp.google.com [172.22.123.203]) by mx.google.com with ESMTPS id c14sm9131922wfe.14.2010.09.28.11.26.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Sep 2010 11:26:04 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org Subject: PATCH COMMITTED: Fix test for CFI directives Date: Tue, 28 Sep 2010 11:26:03 -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 In the patch I committed yesterday, I foolishly tested dwarf2out_do_cfi_asm when all I cared about was whether the assembler supported the CFI directives. This patch corrects that error. Bootstrapped on x86_64-unknown-linux-gnu with a partial testsuite run. Committed to mainline. Ian 2010-09-28 Ian Lance Taylor * config/i386/i386.c (ix86_supports_split_stack): Test HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm. Index: config/i386/i386.c =================================================================== --- config/i386/i386.c (revision 164695) +++ config/i386/i386.c (working copy) @@ -8380,7 +8380,7 @@ ix86_supports_split_stack (bool report A error ("%<-fsplit-stack%> currently only supported on GNU/Linux"); ret = false; #else - if (!dwarf2out_do_cfi_asm ()) + if (!HAVE_GAS_CFI_PERSONALITY_DIRECTIVE) { if (report) error ("%<-fsplit-stack%> requires "