http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53167
Bug #: 53167 Summary: [4.8 regression] bootstrap failure: no previous prototype for 'preserve_function_body_p' Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: mi...@it.uu.se Attempting to bootstrap gcc-4.8-20120429 with --disable-build-poststage1-with-cxx fails with: /mnt/scratch/objdir48/./prev-gcc/xgcc -B/mnt/scratch/objdir48/./prev-gcc/ -B/mnt/scratch/install48/i686-pc-linux-gnu/bin/ -B/mnt/scratch/install48/i686-pc-linux-gnu/bin/ -B/mnt/scratch/install48/i686-pc-linux-gnu/lib/ -isystem /mnt/scratch/install48/i686-pc-linux-gnu/include -isystem /mnt/scratch/install48/i686-pc-linux-gnu/sys-include -c -g -O2 -gtoggle -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I. -I/mnt/scratch/gcc-4.8-20120429/gcc -I/mnt/scratch/gcc-4.8-20120429/gcc/. -I/mnt/scratch/gcc-4.8-20120429/gcc/../include -I/mnt/scratch/gcc-4.8-20120429/gcc/../libcpp/include -I/home/mikpe/pkgs/linux-x86/gmp-5.0.4/include -I/home/mikpe/pkgs/linux-x86/mpfr-3.1.0/include -I/home/mikpe/pkgs/linux-x86/mpc-0.9/include -I/mnt/scratch/gcc-4.8-20120429/gcc/../libdecnumber -I/mnt/scratch/gcc-4.8-20120429/gcc/../libdecnumber/bid -I../libdecnumber /mnt/scratch/gcc-4.8-20120429/gcc/ipa-inline-transform.c -o ipa-inline-transform.o /mnt/scratch/gcc-4.8-20120429/gcc/ipa-inline-transform.c:359:1: error: no previous prototype for 'preserve_function_body_p' [-Werror=missing-prototypes] preserve_function_body_p (struct cgraph_node *node) ^ cc1: all warnings being treated as errors make[3]: *** [ipa-inline-transform.o] Error 1 r186832 renamed cgraph_preserve_function_body_p and moved it to ipa-inline-transform.c, but in that process it ended up (a) non-static, and (b) without a separate prototype, and that triggers -Werror=missing-prototypes. preserve_function_body_p is only used in the same file it's defined in. Making it 'static' restores bootstrap for me.