From patchwork Fri Nov 18 17:24:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 126455 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 1678DB7231 for ; Sat, 19 Nov 2011 04:25:45 +1100 (EST) Received: (qmail 14428 invoked by alias); 18 Nov 2011 17:25:40 -0000 Received: (qmail 14415 invoked by uid 22791); 18 Nov 2011 17:25:39 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from g6t0185.atlanta.hp.com (HELO g6t0185.atlanta.hp.com) (15.193.32.62) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Nov 2011 17:25:07 +0000 Received: from g5t0030.atlanta.hp.com (g5t0030.atlanta.hp.com [16.228.8.142]) by g6t0185.atlanta.hp.com (Postfix) with ESMTP id BD83F244B7; Fri, 18 Nov 2011 17:24:23 +0000 (UTC) Received: from adlwrk05.cce.hp.com (adlwrk05.cce.hp.com [16.85.100.124]) by g5t0030.atlanta.hp.com (Postfix) with ESMTP id 6BC8D148E1; Fri, 18 Nov 2011 17:24:23 +0000 (UTC) Received: (from sje@localhost) by adlwrk05.cce.hp.com (8.11.1 (PHNE_35951)/8.7.3 TIS Messaging 5.0) id pAIHOMd10963; Fri, 18 Nov 2011 09:24:22 -0800 (PST) Date: Fri, 18 Nov 2011 09:24:22 -0800 (PST) From: Steve Ellcey Message-Id: <201111181724.pAIHOMd10963@adlwrk05.cce.hp.com> To: gcc-patches@gcc.gnu.org Subject: [patch, ia64, libgcc] Patch to fix libunwind build on IA64 Cc: matz@suse.de Reply-to: sje@cup.hp.com Mime-Version: 1.0 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 patch fixes the IA64 bootstrap when building libunwind. When using -fexceptions libunwind will have a reference to __gcc_personality_v0 and the bootstrap fails, using -fno-exceptions fixes this. This problem started with r181172, Michael Matz's fix to mark objects death at end of scope. Tested on IA64 HP-UX and Linux. While this change isn't in an ia64 specific file, ia64 is the only platform affected because no other platform defines LIBUNWIND in order to build a separate unwind library. So I will go ahead and check it in if there are no objections. Steve Ellcey sje@cup.hp.com 2011-11-18 Steve Ellcey * Makefile.in (c_flags): Set to -fno-exceptions to build libunwind. Index: Makefile.in =================================================================== --- Makefile.in (revision 181466) +++ Makefile.in (working copy) @@ -829,7 +829,7 @@ endif # Build LIBUNWIND. -c_flags := -fexceptions +c_flags := -fno-exceptions libunwind-objects += $(addsuffix $(objext),$(basename $(notdir $(LIBUNWIND))))