From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19185 invoked by alias); 15 Jun 2013 09:36:16 -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 19147 invoked by uid 48); 15 Jun 2013 09:36:13 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/52347] -Wno-tabs -Wall -Wno-tabs still warns about tabs Date: Sat, 15 Jun 2013 09:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org 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: 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: 2013-06/txt/msg00777.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52347 --- Comment #5 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Simon Richter from comment #4) > Testcase is simple: >=20 > $ cat tt.cpp >=20 > void bar(int baz) { } >=20 > $ g++-4.7 -c -W -Wall -Werror -Wno-unused tt.cpp=20 >=20 > $ g++-4.8 -c -W -Wall -Werror -Wno-unused tt.cpp=20 > tt.cpp:1:6: error: unused parameter =E2=80=98baz=E2=80=99 [-Werror=3Dunus= ed-parameter] > void bar(int baz) { } > ^ > cc1plus: all warnings being treated as errors There is a bug in the logic of the autogenerated code: if (!opts_set->x_warn_unused_parameter && (opts->x_warn_unused && opts->x_extra_warnings)) handle_generated_option (opts, opts_set, OPT_Wunused_parameter, NULL, value, lang_mask, kind, loc, handlers, dc); When processing -Wno-unused, opts->x_warn_unused is false, so we don't turn= off OPT_Wunused_parameter. I think the generated code should be: if (!opts_set->x_warn_unused_parameter && opts->x_extra_warnings) for case OPT_Wunused and if (!opts_set->x_warn_unused_parameter && opts->x_warn_unused) for the case OPT_Wextra. So optc-gen.awk needs adjusting. Let me see if I c= an find time to do this in the coming weeks/months, but if anyone wants to investigate how to fix it, please go ahead. I think this is a different bug than the -Wno-tabs, since that is not handl= ed by the autogenerated code. >>From gcc-bugs-return-424399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jun 15 09:36:25 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19836 invoked by alias); 15 Jun 2013 09:36:25 -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 19792 invoked by uid 48); 15 Jun 2013 09:36:22 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57622] New: -W -Wall -Werror -Wno-unused gives Wunused-parameter warning Date: Sat, 15 Jun 2013 09:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org 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_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc dependson Message-ID: 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: 2013-06/txt/msg00778.txt.bz2 Content-length: 1974 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57622 Bug ID: 57622 Summary: -W -Wall -Werror -Wno-unused gives Wunused-parameter warning Product: gcc Version: 4.8.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: manu at gcc dot gnu.org CC: burnus at gcc dot gnu.org, manu at gcc dot gnu.org, Simon.Richter at hogyros dot de Depends on: 52347 +++ This bug was initially created as a clone of Bug #52347 +++ Testcase is simple: $ cat tt.cpp void bar(int baz) { } $ g++-4.7 -c -W -Wall -Werror -Wno-unused tt.cpp=20 $ g++-4.8 -c -W -Wall -Werror -Wno-unused tt.cpp=20 tt.cpp:1:6: error: unused parameter =E2=80=98baz=E2=80=99 [-Werror=3Dunused= -parameter] void bar(int baz) { } ^ cc1plus: all warnings being treated as errors There is a bug in the logic of the autogenerated code: if (!opts_set->x_warn_unused_parameter && (opts->x_warn_unused && opts->x_extra_warnings)) handle_generated_option (opts, opts_set, OPT_Wunused_parameter, NULL, value, lang_mask, kind, loc, handlers, dc); When processing -Wno-unused, opts->x_warn_unused is false, so we don't turn= off OPT_Wunused_parameter. I think the generated code should be: if (!opts_set->x_warn_unused_parameter && opts->x_extra_warnings) for case OPT_Wunused and if (!opts_set->x_warn_unused_parameter && opts->x_warn_unused) for the case OPT_Wextra. So optc-gen.awk needs adjusting. Let me see if I c= an find time to do this in the coming weeks/months, but if anyone wants to investigate how to fix it, please go ahead. I think this is a different bug than the -Wno-tabs, since that is not handl= ed by the autogenerated code. >>From gcc-bugs-return-424400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jun 15 09:36:47 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20523 invoked by alias); 15 Jun 2013 09:36:47 -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 20489 invoked by uid 48); 15 Jun 2013 09:36:44 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57622] -W -Wall -Werror -Wno-unused gives Wunused-parameter warning Date: Sat, 15 Jun 2013 09:36: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.8.0 X-Bugzilla-Keywords: diagnostic 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: 2013-06/txt/msg00779.txt.bz2 Content-length: 477 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57622 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-06-15 CC|burnus at gcc dot gnu.org | Ever confirmed|0 |1 >>From gcc-bugs-return-424401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jun 15 09:39:15 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22918 invoked by alias); 15 Jun 2013 09:39:15 -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 22883 invoked by uid 48); 15 Jun 2013 09:39:12 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/52347] -Wno-tabs -Wall -Wno-tabs still warns about tabs Date: Sat, 15 Jun 2013 09:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org 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: cc blocked 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: 2013-06/txt/msg00780.txt.bz2 Content-length: 640 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52347 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- CC|manu at gcc dot gnu.org | Blocks|57622 | --- Comment #6 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- I created bug 52347 to track the autogenerated code issue. This bug should = be fixed if Fortran's -Wall is moved to the autogenerated method of handling g= roup options (see options.texi) >>From gcc-bugs-return-424402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jun 15 09:54:04 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26910 invoked by alias); 15 Jun 2013 09:54:04 -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 26858 invoked by uid 48); 15 Jun 2013 09:53:54 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57620] Phantom terminator confuses raw string literal parsing. Date: Sat, 15 Jun 2013 09:54: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org 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: 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: 2013-06/txt/msg00781.txt.bz2 Content-length: 497 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57620 --- Comment #2 from Jakub Jelinek --- There seems to be more issues in the raw string literal lexing. E.g. const char *s = R"a??/(x)a??/"; should be I think handled the same as const char *s = "x"; with -std=c++11 or -std=gnu++11 -trigraphs, but is not. We only revert the phase 1 and phase 2 transformations in between ( and ), but they should actually be reverted everywhere between the " after R and the final ".