https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85288
Bug ID: 85288 Summary: profiledbootstrap failure on aarch with -freorder-blocks-and-partition; bogus warning with --save-temps Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: hubicka at gcc dot gnu.org Target Milestone: --- I get: /home/jh/trunk/build/./prev-gcc/xg++ -B/home/jh/trunk/build/./prev-gcc/ -B/usr/local/aarch64-unknown-linux-gnu/bin/ -nostdinc++ -B/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/include/aarch64-unknown-linux-gnu -I/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/include -I/home/jh/trunk/libstdc++-v3/libsupc++ -L/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c -DIN_GCC_FRONTEND -g -O2 -gtoggle -fprofile-generate -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -Ic -I../../gcc -I../../gcc/c -I../../gcc/../include -I../../gcc/../libcpp/include -I/home/jh/trunk/build/./gmp -I/home/jh/trunk/gmp -I/home/jh/trunk/build/./mpfr/src -I/home/jh/trunk/mpfr/src -I/home/jh/trunk/mpc/src -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -I/home/jh/trunk/build/./isl/include -I/home/jh/trunk/isl/include -o c/c-fold.o -MT c/c-fold.o -MMD -MP -MF c/.deps/c-fold.TPo ../../gcc/c/c-fold.c /tmp/ccwQvHyu.s: Assembler messages: /tmp/ccwQvHyu.s:2546: Error: invalid operands (.text.unlikely and .text sections) for `-' It is .2byte (.L310 - .Lrtx311) / 4 L310 is in cold section while Lrtx311 is in hot section. So perhaps we want to rule out tablejumps crossing partition bounaries? while trying to profiledbootstrap with block partitioning. Curiously enough also adding --save-temps provoke warning: /home/jh/trunk/build/./prev-gcc/xg++ -B/home/jh/trunk/build/./prev-gcc/ -B/usr/local/aarch64-unknown-linux-gnu/bin/ -nostdinc++ -B/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/include/aarch64-unknown-linux-gnu -I/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/include -I/home/jh/trunk/libstdc++-v3/libsupc++ -L/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/jh/trunk/build/prev-aarch64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c -DIN_GCC_FRONTEND -g -O2 -gtoggle -fprofile-generate -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -Ic -I../../gcc -I../../gcc/c -I../../gcc/../include -I../../gcc/../libcpp/include -I/home/jh/trunk/build/./gmp -I/home/jh/trunk/gmp -I/home/jh/trunk/build/./mpfr/src -I/home/jh/trunk/mpfr/src -I/home/jh/trunk/mpc/src -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -I/home/jh/trunk/build/./isl/include -I/home/jh/trunk/isl/include -o c/c-fold.o -MT c/c-fold.o -MMD -MP -MF c/.deps/c-fold.TPo ../../gcc/c/c-fold.c --save-temps ../../gcc/c/c-fold.c: In function ‘tree_node* c_fully_fold_internal(tree, bool, bool*, bool*, bool, bool)’: ../../gcc/c/c-fold.c:313:16: error: this statement may fall through [-Werror=implicit-fallthrough=] op0_lval = true; ~~~~~~~~~^~~~~~ ../../gcc/c/c-fold.c:315:5: note: here case COMPOUND_EXPR: ^~~~ ../../gcc/c/c-fold.c:446:16: error: this statement may fall through [-Werror=implicit-fallthrough=] op0_lval = lval; ~~~~~~~~~^~~~~~ ../../gcc/c/c-fold.c:448:5: note: here case INDIRECT_REF: ^~~~ this warning is not dispyed without --save-temps. (note that this is profiledbootstrap build)