From patchwork Fri Apr 27 01:19:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 905463 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-476870-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="gfaT+4iY"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40XGLw6Ftlz9ry1 for ; Fri, 27 Apr 2018 11:19:50 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=CnbZqqHNDCekb0Q2EorzEqwvcBHSDMtBXZWh5iBdYFPD3USAhf UVWirLtI9r/GFc5KwuqNrHrpt/NHCIqqcT3Dcyo4nPoUU0107vwrvVJBIwdgMdol yt4CNaSQ9ltnhl5404yxX6agIcOXY3ybXiQahWpXTnaVth9yv+CuXm9Jk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=pZu1/y78zhE+zRchOXZhho4T2nY=; b=gfaT+4iY3zf6cjJATJdV fDUVzBebfxzuhDgaZ1nkGZ6Ib2HlBqVNggz7KI1gm68/XVcj2ChCyZWUwwLX0rBo glzQ0krOrFmI8uMuGQJZTzdSdEM/Y1EWWtWF4VAgr+Ytc7LsUSZ8pxl+LTTUrKnZ IvqTp6ks3fE3z71rwdY1msQ= Received: (qmail 113747 invoked by alias); 27 Apr 2018 01:19:24 -0000 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 Received: (qmail 113683 invoked by uid 89); 27 Apr 2018 01:19:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1422, HX-Received:10.98.141.201 X-HELO: mail-pg0-f45.google.com Received: from mail-pg0-f45.google.com (HELO mail-pg0-f45.google.com) (74.125.83.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Apr 2018 01:19:20 +0000 Received: by mail-pg0-f45.google.com with SMTP id j11-v6so240076pgf.2 for ; Thu, 26 Apr 2018 18:19:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=UzanwES2YdZyJeduu+3YAFkRjju/M8RZuhJFtF3i/MQ=; b=MNd86UxaV/4/S0/4LrTmDWG/WqiwwXVQyty2Wxu3hPHho+CdLbdwFJ8/EeeYjyEVSd 5WehpMgizRYH0rwR9S3PHPf12YG9GoPtjUUYr6knKqiyLtFUx0aO+BevVLRfNG0oZECQ 1Z3cfmF//YbItqPW7EtjukHOg0Rekr94ViwIefFVG9GDb/XZl0/H1fHump87DqCUNuTe 58oeQ0TR0htb2xTPfQFzEpKq1bRq3CXTxZsXMJSms2BdWY5UzGHUKrOsQo2J5Mpl5ril yJNUxdR/N3pEncBZcgnkskQfa/lgEniDATLxBQRaC4VmEtasxlTifjlGLPCePs9cxO1o h+Sg== X-Gm-Message-State: ALQs6tB9Gbi8V2gGNl91o6GRIutSZwBolKCD/gg1+2FZ2XcroNOLr22d jcaiJQVTc/XmRj68bLVCRtEe4Q== X-Google-Smtp-Source: AB8JxZrRoWQ5028NEHhgTtg3t/fuJbzSDcX0CNysidhTJLL5Rp7Q59pwkiyfn78DF3RZGlnigKNIWw== X-Received: by 10.98.141.201 with SMTP id p70mr317390pfk.72.1524791958909; Thu, 26 Apr 2018 18:19:18 -0700 (PDT) Received: from bubble.grove.modra.org (CPE-58-175-241-133.hdcz1.win.bigpond.net.au. [58.175.241.133]) by smtp.gmail.com with ESMTPSA id e5sm180650pfk.28.2018.04.26.18.19.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 18:19:17 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 3CFB8C8DE9; Fri, 27 Apr 2018 10:49:14 +0930 (ACST) Date: Fri, 27 Apr 2018 10:49:14 +0930 From: Alan Modra To: gcc-patches@gcc.gnu.org Cc: Segher Boessenkool Subject: PR85532, crtend.o built without --enable-initfini-array has bad .eh_frame Message-ID: <20180427011914.GM18288@bubble.grove.modra.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes This patch is aimed at removing bogus .eh_frame info emitted after the zero terminator in crtend.o, which will cause a ld warning and slow exception handling. The right fix for the PR is probably to change libgcc/Makefile.in to always supply -fno-asynchronous-unwind-tables when building crtbegin.o and crtend.o, since the utility of such unwind info is limited to say the least; To what handler would you be unwinding to? This patch instead carries on in the tradition of pr31868 and pr80037, and just fixes the problem for powerpc.. alpha, i386, s390, tilepro, tilegx already disable unwind info for these files. Bootstrapped and regression tested powerpc64le-linux. OK for master and gcc-8? PR libgcc/85532 * config/rs6000/t-crtstuff (CRTSTUFF_T_CFLAGS): Add -fno-asynchronous-unwind-tables. diff --git a/libgcc/config/rs6000/t-crtstuff b/libgcc/config/rs6000/t-crtstuff index 0b2601b..d5ff959 100644 --- a/libgcc/config/rs6000/t-crtstuff +++ b/libgcc/config/rs6000/t-crtstuff @@ -3,4 +3,4 @@ # Do not build crtend.o with -Os as that can result in references to # out-of-line register save/restore functions, which may be unresolved # as crtend.o is linked after libgcc.a. See PR45053. -CRTSTUFF_T_CFLAGS = -msdata=none -O2 +CRTSTUFF_T_CFLAGS = -msdata=none -O2 -fno-asynchronous-unwind-tables