From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30655 invoked by alias); 28 Jul 2014 14:39:44 -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 30136 invoked by uid 48); 28 Jul 2014 14:39:38 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61913] ICE in common_handle_option with -Wodr Date: Mon, 28 Jul 2014 14:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.10.0 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-07/txt/msg01848.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61913 --- Comment #6 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Marek Polacek from comment #5) > (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #4) > > It is pretty strange that you need a Var() if it is not used anywhere. >=20 > It is, we have a bug for it: PR61480. But there is no Init(1) there. In fact, I doubt Wodr is enabled by default = as the documentation says without Init(1). > The issue is that lto.exp does not allow to scan for 'warning:'. Isn't that a bug/missing feature? It seems crucial if one wants to add warnings/errors generated by LTO. >>From gcc-bugs-return-457258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 28 14:41:07 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32064 invoked by alias); 28 Jul 2014 14:41:06 -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 32002 invoked by uid 48); 28 Jul 2014 14:41:02 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61913] ICE in common_handle_option with -Wodr Date: Mon, 28 Jul 2014 14:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.10.0 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-07/txt/msg01849.txt.bz2 Content-length: 436 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61913 --- Comment #7 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Marek Polacek from comment #5) > > Also, most of my comments in this review have been ignored: > >=20 > > https://gcc.gnu.org/ml/gcc-patches/2014-07/msg00233.html In particular, the manual does not show Wodr: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options >>From gcc-bugs-return-457259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 28 14:47:06 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2912 invoked by alias); 28 Jul 2014 14:47:05 -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 2839 invoked by uid 48); 28 Jul 2014 14:47:00 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61913] ICE in common_handle_option with -Wodr Date: Mon, 28 Jul 2014 14:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.10.0 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-07/txt/msg01850.txt.bz2 Content-length: 1081 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61913 --- Comment #8 from Marek Polacek --- (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #6) > (In reply to Marek Polacek from comment #5) > > (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #4) > > > It is pretty strange that you need a Var() if it is not used anywhere. > >=20 > > It is, we have a bug for it: PR61480. >=20 > But there is no Init(1) there. In fact, I doubt Wodr is enabled by default > as the documentation says without Init(1). I guess it doesn't matter whether there's Init() or not then. > > The issue is that lto.exp does not allow to scan for 'warning:'. >=20 > Isn't that a bug/missing feature? It seems crucial if one wants to add > warnings/errors generated by LTO. It certainly is a deficiency. > In particular, the manual does not show Wodr: > https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options The description is there (after -Wno-overflow), but @item is missing, so the warning name isn't listed there. I'll add it. >>From gcc-bugs-return-457260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 28 14:53:51 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10344 invoked by alias); 28 Jul 2014 14:53:51 -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 10279 invoked by uid 48); 28 Jul 2014 14:53:45 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61913] ICE in common_handle_option with -Wodr Date: Mon, 28 Jul 2014 14:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.10.0 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-07/txt/msg01851.txt.bz2 Content-length: 1726 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61913 --- Comment #9 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Marek Polacek from comment #8) > (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #6) > > (In reply to Marek Polacek from comment #5) > > > (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #4) > > > > It is pretty strange that you need a Var() if it is not used anywhe= re. > > >=20 > > > It is, we have a bug for it: PR61480. > >=20 > > But there is no Init(1) there. In fact, I doubt Wodr is enabled by defa= ult > > as the documentation says without Init(1). >=20 > I guess it doesn't matter whether there's Init() or not then. It doesn't seem to be the same bug at all. The other one does not ICE, just ignores -Wno-. I understand why -Wno- is ignored, but I don't understand wh= y it -Wodr ICEs without Var(). > > > The issue is that lto.exp does not allow to scan for 'warning:'. > >=20 > > Isn't that a bug/missing feature? It seems crucial if one wants to add > > warnings/errors generated by LTO. >=20 > It certainly is a deficiency. It seems quite a major deficiency if we are going to keep adding warnings to LTO, which are never tested and there is a high chance they are not working= at all. Is there a PR about it? Is Jan or someone else working on it? > > In particular, the manual does not show Wodr: > > https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options >=20 > The description is there (after -Wno-overflow), but @item is missing, so = the > warning name isn't listed there. I'll add it. I added the correct entry in my review. You could use that. It fixes several deficiencies with the current entry. >>From gcc-bugs-return-457261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 28 15:02:04 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19349 invoked by alias); 28 Jul 2014 15:02: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 18894 invoked by uid 48); 28 Jul 2014 15:01:56 -0000 From: "galdralag at bk dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61935] Missing "unused variable" warning in 4.9 but it was in g++ 4.8 Date: Mon, 28 Jul 2014 15:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: galdralag at bk dot ru X-Bugzilla-Status: UNCONFIRMED 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 resolution 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-07/txt/msg01852.txt.bz2 Content-length: 560 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61935 Vyacheslav changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE |--- --- Comment #2 from Vyacheslav --- Variable rrr is reference. If change it to pointer warning occurs. Is it intentional ? And one more time: In g++ 4.8 warning always printed as expected.