https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103899
Bug ID: 103899 Summary: make profiledbootstrap fails due to uninitialized warning in expr.c Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: build, diagnostic Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- I am filing this and will attach the preprocessed source in a few minutes: /home/apinski/src/upstream-gcc/gcc/objdir1/./prev-gcc/xg++ -B/home/apinski/src/upstream-gcc/gcc/objdir1/./prev-gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -I/home/apinski/src/upstream-gcc/gcc/libstdc++-v3/libsupc++ -L/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/home/apinski/src/upstream-gcc/gcc/objdir1/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c -g -O2 -fno-checking -gtoggle -fprofile-generate -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libcody -I/home/apinski/src/upstream-gcc/gcc/objdir1/./gmp -I/home/apinski/src/upstream-gcc/gcc/gmp -I/home/apinski/src/upstream-gcc/gcc/objdir1/./mpfr/src -I/home/apinski/src/upstream-gcc/gcc/mpfr/src -I/home/apinski/src/upstream-gcc/gcc/mpc/src -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace -I/home/apinski/src/upstream-gcc/gcc/objdir1/./isl/include -I/home/apinski/src/upstream-gcc/gcc/isl/include -o expr.o -MT expr.o -MMD -MP -MF ./.deps/expr.TPo ../../gcc/expr.c In file included from ../../gcc/expr.c:26: ../../gcc/tree.h: In function ‘rtx_def* expand_expr_real_1(tree, rtx, machine_mode, expand_modifier, rtx_def**, bool)’: ../../gcc/tree.h:244:56: error: ‘context’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 244 | #define TREE_CODE(NODE) ((enum tree_code) (NODE)->base.code) | ^~~~ ../../gcc/expr.c:10343:8: note: ‘context’ was declared here 10343 | tree context; | ^~~~~~~ cc1plus: all warnings being treated as errors Makefile:1143: recipe for target 'expr.o' failed make[3]: *** [expr.o] Error 1 I just did: mkdir objdir1 cd objdir1 ../configure make profiledbootstrap I tried to get a reduced testcase but I think there is a missing jump threading so it just happen to work for the reduced testcase I tried.