From patchwork Fri Jan 16 23:42:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kratochvil X-Patchwork-Id: 430069 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 104091400A0 for ; Sat, 17 Jan 2015 10:42:34 +1100 (AEDT) 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:subject:message-id:mime-version:content-type; q=dns; s= default; b=UwKkPNME5fDVTtXEIeAZH+YzJ+KuudunWffHBWADwYfMlhsE1TO0I np/cy7QfYW23a/5vRyr82Ex7qjrE65DX3WarWEmI9EvWhRAWZJKKCGH+I3mEXe4m olSIvZSdsOkB5NVmHBEo5F5ktErmSfatO8VhnzXtSfIyGD5oqwD4fM= 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:subject:message-id:mime-version:content-type; s= default; bh=g8ovqrZrM906vxYS2m5cfSOsgyE=; b=UpbftzPHliWGMljkx1/z bgydZWvYqWWEt0J8DzpgzAo4/a1CxgVFclL9g26KFwg03u2udizoOkqvE0uikRKX Qxkidg7j9BTte4t0qx6bs1sqMb85BP+G41IebL2l9BatnwqcNfgo4AHKGFq2ihdk GHHQxyzbNj6r6aJU3w+lCnQ= Received: (qmail 22639 invoked by alias); 16 Jan 2015 23:42:28 -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 22626 invoked by uid 89); 16 Jan 2015 23:42:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 16 Jan 2015 23:42:26 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0GNgOEJ019026 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 16 Jan 2015 18:42:24 -0500 Received: from host2.jankratochvil.net (ovpn-116-51.ams2.redhat.com [10.36.116.51]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0GNgLZk032653 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 16 Jan 2015 18:42:24 -0500 Date: Sat, 17 Jan 2015 00:42:21 +0100 From: Jan Kratochvil To: gcc-patches@gcc.gnu.org Subject: [patch] DW_AT_producer: Ignore -fpreprocessed Message-ID: <20150116234221.GA9569@host2.jankratochvil.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes Hi, I have provided a sufficient fix in GDB for the -fplugin=libcc1plugin feature: [patch+7.9] compile: Filter out -fpreprocessed https://sourceware.org/ml/gdb-patches/2015-01/msg00485.html But still I think "-fpreprocessed" is inappropriate for DW_AT_producer. Otherwise for an inferior built using ccache the string "-fpreprocessed" is put into DW_AT_producer and then GDB compilation with -fplugin=libcc1plugin breaks as the GDB-runtime-generated source is not already preprocessed. I have rebuilt GCC but I have not run the testsuite with this patch. Jan gcc/ChangeLog * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed. Index: ./gcc/dwarf2out.c =================================================================== --- ./gcc/dwarf2out.c (revision 219770) +++ ./gcc/dwarf2out.c (working copy) @@ -19624,6 +19624,7 @@ gen_producer_string (void) case OPT__sysroot_: case OPT_nostdinc: case OPT_nostdinc__: + case OPT_fpreprocessed: /* Ignore these. */ continue; default: