From patchwork Wed Apr 18 12:15:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 900082 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-476553-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="KNfEASRf"; 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 40R1Lc47tCz9s4c for ; Wed, 18 Apr 2018 22:16:23 +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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=HWJC45gtismhHrsqx5ySPQNK/z9NPlXe9Tco6zVp23Vhv1 nlwL5w1w5warhimzKVz1wJMRl45OdOmTJCkHbDd/OK6Cy/MtW1ty4s/EDt7jCgoT GPG74qvTZ8VMTv8DTa6wHr/+FhpYT41tzVRVz9GvNo+V9GCNkXbt7i1lR7big= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=IA35yMFFnMmi6+pHPnDEOapmQlk=; b=KNfEASRfoMGD7tRNa382 w6DuVc2TT7CdXu57GWbsMturWqAnn1thchtH8LB1oQzcu4ksdZUx+wOPMct0fkR4 jniRd5tYpZ2+8kGF5qhTh0sLwiz54HZtTYwW5+Ypg3oFHHifzzzOl4MRBBsg/VMS 9/3N1x9jJDxfrZXQy5Virg0= Received: (qmail 127075 invoked by alias); 18 Apr 2018 12:15:41 -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 126789 invoked by uid 89); 18 Apr 2018 12:15:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-it0-f51.google.com Received: from mail-it0-f51.google.com (HELO mail-it0-f51.google.com) (209.85.214.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Apr 2018 12:15:07 +0000 Received: by mail-it0-f51.google.com with SMTP id 19-v6so2155675itw.3; Wed, 18 Apr 2018 05:15:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=w6O7CtNUbFQwPJQZJtWMVqzZFAAFaZrsLI/7QGn0O04=; b=pc2F/kIXlb5Au3kxhSlNMRmkyamNZHAsZQe4DvqhhplbFoNdGg+bFKNsgdibVDBPOj sB54vdCpSQUcc0GYwzzeAuPDSx/zUYS+BzPpO25EmHHjf9VM9WYNkFk9+145fRZ34JDW K/Sx1TSE2q+IQQ0t029uTAkiCRFAgy5qlHORovOyGLWkhuH4/33KgFWpdBjrIik3qapS OFkgrDpK9bIv3FdUVPhecVM0cVQhE824/fiW6Ec4QyZfMD2pFt7RFR6FLqtBKNEkbzvx ptF2KOSNYwXUFuB/r6DNwp0vvCvKxdV0UPCj8oOIZGvcrNIJmTl6SKhw2RchUgNBiaaN J8vw== X-Gm-Message-State: ALQs6tCtvvkpF8Spx7yXGg8jHiLOZaxuZ1aCIWDvLCB2tGM2P9P9eMJI oHwIz3FqBQXnU0MvBo1/6yUn7krAH7MIi3SPVYsYRn51 X-Google-Smtp-Source: AIpwx4+8zWDQfve1H+X99kSnjAsCD21SGlwiWloI4HmRTYrNma+3XhmAXnIcAQ8BFJvn8RO1IYHm53vFvyF/AgHyG5c= X-Received: by 2002:a24:564e:: with SMTP id o75-v6mr1851443itb.64.1524053705250; Wed, 18 Apr 2018 05:15:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.30.10 with HTTP; Wed, 18 Apr 2018 05:15:04 -0700 (PDT) From: Jonathan Wakely Date: Wed, 18 Apr 2018 13:15:04 +0100 Message-ID: Subject: [PATCH] PR libstdc++/85442 fix duplicate debuginfo for cxx11-ios_failure.cc To: "libstdc++" , gcc-patches The fix for PR 85222 ends up generating duplicate debuginfo sections, because we compile the .cc file and then compile the .s file. This adds -g0 to the second step so we don't generate debuginfo again. I've verified that we still have debuginfo for the file and can step through the code when using the $prefix/lib64/debug/libstdc++.so.6 version of the library. 2018-04-18 Jonathan Wakely Jakub Jelinek PR libstdc++/85442 * src/c++11/Makefile.am: Don't generate debuginfo again for cxx11-ios_failure-lt.s and cxx11-ios_failure.s files. * src/c++11/Makefile.in: Regenerate. Tested powerpc64le-linux, committed to trunk. Backport to gcc-7-branch to follow. commit 55c94164faf1f124b5c88067ead6871f383fb319 Author: Jonathan Wakely Date: Wed Apr 18 12:27:11 2018 +0100 PR libstdc++/85442 fix duplicate debuginfo for cxx11-ios_failure.cc 2018-04-18 Jonathan Wakely Jakub Jelinek PR libstdc++/85442 * src/c++11/Makefile.am: Don't generate debuginfo again for cxx11-ios_failure-lt.s and cxx11-ios_failure.s files. * src/c++11/Makefile.in: Regenerate. diff --git a/libstdc++-v3/src/c++11/Makefile.am b/libstdc++-v3/src/c++11/Makefile.am index cdc49bb7f9b..91bf6f8d642 100644 --- a/libstdc++-v3/src/c++11/Makefile.am +++ b/libstdc++-v3/src/c++11/Makefile.am @@ -141,9 +141,9 @@ cxx11-ios_failure.s: cxx11-ios_failure.cc -rm -f tmp-$@ cxx11-ios_failure.lo: cxx11-ios_failure-lt.s - $(LTCXXCOMPILE) -c $< -o $@ + $(LTCXXCOMPILE) -g0 -c $< -o $@ cxx11-ios_failure.o: cxx11-ios_failure.s - $(CXXCOMPILE) -c $< + $(CXXCOMPILE) -g0 -c $< endif # AM_CXXFLAGS needs to be in each subdirectory so that it can be