On Mon, 1 Dec 2014, Ulrich Weigand wrote: > Richard Biener wrote: > > > * Makefile.in (gimple-match.o-warn): Remove -Wno-unused-parameter, > > add -Wno-unused-but-set-variable. > > This seems to cause > > cc1plus: error: unrecognized command line option > "-Wno-unused-but-set-variable" > > make[3]: *** [gimple-match.o] Error 1 > > > > in stage1 when bootstrapping on SLES 11 (gcc 4.3.4 host compiler).
Oh. Hmm, so I guess build/gengtype-lex.o-warn = -Wno-error gengtype-lex.o-warn = -Wno-error and friends are also incorrect for host compilers that do not know -Wno-error? Which means we need configure checks and substitutes for all -Wno-X we use. 4.3 has -Wunused so I can just replace -Wno-unused-variable -Wno-unused-but-set-variable with -Wno-unused as a quick fix for you. Will do that now (I didn't want to use -Wno-error because that makes the compile quite uselessly verbose and fails to diagnose real issues). Thanks for the report, Richard.