This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C/C++ PATCH] RFC: Implement -Wduplicated-cond (PR c/64249) (take
- From: Marek Polacek <polacek at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Martin Sebor <msebor at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>, Joseph Myers <joseph at codesourcery dot com>
- Date: Sat, 3 Oct 2015 19:00:32 +0200
- Subject: Re: [C/C++ PATCH] RFC: Implement -Wduplicated-cond (PR c/64249) (take
- Authentication-results: sourceware.org; auth=none
- References: <20150918134434 dot GG27588 at redhat dot com> <m27fn477m6 dot fsf at linux-m68k dot org>
On Sat, Oct 03, 2015 at 09:07:29AM +0200, Andreas Schwab wrote:
> Marek Polacek <polacek@redhat.com> writes:
>
> > diff --git gcc/Makefile.in gcc/Makefile.in
> > index c2df21d..d7caa76 100644
> > --- gcc/Makefile.in
> > +++ gcc/Makefile.in
> > @@ -217,6 +217,8 @@ libgcov-merge-tool.o-warn = -Wno-error
> > gimple-match.o-warn = -Wno-unused
> > generic-match.o-warn = -Wno-unused
> > dfp.o-warn = -Wno-strict-aliasing
> > +insn-latencytab.o-warn = -Wno-duplicated-cond
> > +insn-dfatab.o-warn = -Wno-duplicated-cond
>
> cc1plus: error: unrecognized command line option "-Wno-duplicated-cond"
> make[3]: *** [insn-dfatab.o] Error 1
Sorry, fixed with:
Bootstrapped/regtested on x86_64-linux, applying to trunk.
2015-10-03 Marek Polacek <polacek@redhat.com>
* Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
(insn-dfatab.o): Likewise.
diff --git gcc/Makefile.in gcc/Makefile.in
index b22b5ab..009c745 100644
--- gcc/Makefile.in
+++ gcc/Makefile.in
@@ -217,8 +217,6 @@ libgcov-merge-tool.o-warn = -Wno-error
gimple-match.o-warn = -Wno-unused
generic-match.o-warn = -Wno-unused
dfp.o-warn = -Wno-strict-aliasing
-insn-latencytab.o-warn = -Wno-duplicated-cond
-insn-dfatab.o-warn = -Wno-duplicated-cond
# All warnings have to be shut off in stage1 if the compiler used then
# isn't gcc; configure determines that. WARN_CFLAGS will be either
Marek