[C/C++ PATCH] RFC: Implement -Wduplicated-cond (PR c/64249) (take

Marek Polacek polacek@redhat.com
Sat Oct 3 17:00:00 GMT 2015


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



More information about the Gcc-patches mailing list