On i?86-unknown-freebsd9, which has GCC 4.2 as system compiler, bootstrap started to fail as follows: emit.TPo insn-emit.c g++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I/scratch/tmp/gerald/gcc-HEAD/gcc -I/scratch/tmp/gerald/gcc-HEAD/gcc/. -I/scratch/tmp/gerald/gcc-HEAD/gcc/../include -I./../intl -I/scratch/tmp/gerald/gcc-HEAD/gcc/../libcpp/include -I/home/gerald/9-amd64/include -I/scratch/tmp/gerald/gcc-HEAD/gcc/../libdecnumber -I/scratch/tmp/gerald/gcc-HEAD/gcc/../libdecnumber/dpd -I../libdecnumber -I/scratch/tmp/gerald/gcc-HEAD/gcc/../libbacktrace -o insn-extract.o -MT insn-extract.o -MMD -MP -MF ./.deps/insn-extract.TPo insn-extract.c cc1plus: error: unrecognized command line option "-Wno-implicit-fallthrough" gmake[3]: *** [Makefile:1102: insn-emit.o] Error 1 gmake[3]: *** Waiting for unfinished jobs.... rm fsf-funding.pod gcov.pod gpl.pod cpp.pod gfdl.pod gcc.pod gcov-tool.pod gmake[3]: Leaving directory '/scratch/tmp/gerald/OBJ-0927-0731/gcc' gmake[2]: *** [Makefile:4571: all-stage1-gcc] Error 2 gmake[2]: Leaving directory '/scratch/tmp/gerald/OBJ-0927-0731' gmake[1]: *** [Makefile:24240: stage1-bubble] Error 2 gmake[1]: Leaving directory '/scratch/tmp/gerald/OBJ-0927-0731' gmake: *** [Makefile:24577: bootstrap] Error 2 I believe this is caused by 2016-09-26 Marek Polacek <polacek@redhat.com> PR c/7652 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn, insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add -Wno-switch-fallthrough.
Oh yes older gcc complain about non-existent negative warning options.
Confirmed. You can't do this for flags not present in all GG supported for stage1. See how -Wno-error is used instead of a specific warning on other objects for the very same reason.
Author: mpolacek Date: Tue Sep 27 10:40:37 2016 New Revision: 240526 URL: https://gcc.gnu.org/viewcvs?rev=240526&root=gcc&view=rev Log: PR bootstrap/77751 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn, insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use -Wno-error instead of -Wno-implicit-fallthrough. Modified: trunk/gcc/ChangeLog trunk/gcc/Makefile.in
Should be fixed.
(In reply to Marek Polacek from comment #4) > Should be fixed. Yep, verified.