public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/60014] Bad warning suppression caused by track-macro-expansion when not using integrated cpp Date: Tue, 10 Jun 2014 10:24:00 -0000 [thread overview] Message-ID: <bug-60014-4-Wxrir02TsD@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-60014-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60014 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-06-10 CC| |dodji at gcc dot gnu.org, | |manu at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- I can reproduce it in trunk using: #pragma GCC system_header #define FOO(a, b) __LINE__; I think the problem is that there is a push of the system-header-ness flag on the expansion of the macro, but there is no pop to restore non-system-header-ness. That is, we generate: # 1 "test.c" # 1 "<built-in>" # 1 "<command-line>" # 1 "test.c" # 1 "test.h" 1 # 2 "test.h" 3 # 2 "test.c" 2 int main() { 6 # 5 "test.c" 3 ; ; char* a = 1; } but we should generate: # 1 "test.c" # 1 "<built-in>" # 1 "<command-line>" # 1 "test.c" # 1 "test.h" 1 # 2 "test.h" 3 # 2 "test.c" 2 int main() { 6 # 5 "test.c" 3 ; # 6 "test.c" ; char* a = 1; } >From gcc-bugs-return-453607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 10 10:25:02 2014 Return-Path: <gcc-bugs-return-453607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16513 invoked by alias); 10 Jun 2014 10:25:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16442 invoked by uid 48); 10 Jun 2014 10:24:55 -0000 From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/60014] Bad warning suppression caused by track-macro-expansion when not using integrated cpp Date: Tue, 10 Jun 2014 10:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-60014-4-vlSPQzjvSL@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-60014-4@http.gcc.gnu.org/bugzilla/> References: <bug-60014-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg00689.txt.bz2 Content-length: 263 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60014 --- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- The meaning of the flags is given here: https://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html#Preprocessor-Output >From gcc-bugs-return-453608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 10 10:30:22 2014 Return-Path: <gcc-bugs-return-453608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21260 invoked by alias); 10 Jun 2014 10:30:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21196 invoked by uid 55); 10 Jun 2014 10:30:18 -0000 From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/57186] implement load sinking in loops Date: Tue, 10 Jun 2014 10:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-57186-4-yy1RYrKcrT@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-57186-4@http.gcc.gnu.org/bugzilla/> References: <bug-57186-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg00690.txt.bz2 Content-length: 625 https://gcc.gnu.org/bugzilla/show_bug.cgi?idW186 --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Jun 10 10:29:44 2014 New Revision: 211404 URL: http://gcc.gnu.org/viewcvs?rev!1404&root=gcc&view=rev Log: 2014-06-10 Richard Biener <rguenther@suse.de> PR tree-optimization/57186 PR tree-optimization/59299 * gcc.dg/tree-ssa/ssa-sink-11.c: New testcase. * gcc.dg/tree-ssa/ssa-sink-12.c: Likewise. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-11.c trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-12.c Modified: trunk/gcc/testsuite/ChangeLog
next prev parent reply other threads:[~2014-06-10 10:24 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-01-31 21:27 [Bug c/60014] New: Bad warning suppression megahallon at gmail dot com 2014-06-10 6:30 ` [Bug preprocessor/60014] Bad warning suppression caused by track-macro-expansion when not using integrated cpp peff at peff dot net 2014-06-10 10:24 ` manu at gcc dot gnu.org [this message] 2015-04-28 19:47 ` megahallon at gmail dot com 2022-10-06 21:51 ` lhyatt at gcc dot gnu.org 2022-10-12 22:16 ` cvs-commit at gcc dot gnu.org 2022-10-12 22:17 ` lhyatt at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-60014-4-Wxrir02TsD@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).