From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15651 invoked by alias); 10 Jun 2014 10:24:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15597 invoked by uid 48); 10 Jun 2014 10:24:06 -0000 From: "manu at gcc dot 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 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: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: 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/msg00688.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60014 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez 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=C3=B3pez-Ib=C3=A1=C3=B1ez --- 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 "" # 1 "" # 1 "test.c" # 1 "test.h" 1 # 2 "test.h" 3 # 2 "test.c" 2 int main() { 6 # 5 "test.c" 3 ; ; char* a =3D 1; } but we should generate: # 1 "test.c" # 1 "" # 1 "" # 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 =3D 1; } >>From gcc-bugs-return-453607-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 10 10:25:02 2014 Return-Path: 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: List-Archive: List-Post: List-Help: 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" 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: In-Reply-To: References: 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=3D60014 --- Comment #4 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- The meaning of the flags is given here: https://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html#Preprocessor-Ou= tput >>From gcc-bugs-return-453608-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 10 10:30:22 2014 Return-Path: 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: List-Archive: List-Post: List-Help: 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" 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: In-Reply-To: References: 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?id=57186 --- Comment #5 from Richard Biener --- Author: rguenth Date: Tue Jun 10 10:29:44 2014 New Revision: 211404 URL: http://gcc.gnu.org/viewcvs?rev=211404&root=gcc&view=rev Log: 2014-06-10 Richard Biener 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