https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62005
Bug ID: 62005 Summary: [4.10 regression] with --enable-checking=rtl : loop-unroll.c:2095:10: error: function may return address of local variable Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com r213523, r213529 FAIL r213316 PASS ~/src/gcc_r213529/configure --enable-checking=rtl make [...] make[3]: Entering directory `/home/dimhen/build/gcc_r213529_rtl/gcc' /home/dimhen/build/gcc_r213529_rtl/./prev-gcc/xg++ -B/home/dimhen/build/gcc_r213529_rtl/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/home/dimhen/build/gcc_r213529_rtl/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/dimhen/build/gcc_r213529_rtl/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/dimhen/build/gcc_r213529_rtl/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/home/dimhen/build/gcc_r213529_rtl/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/home/dimhen/src/gcc_r213529/libstdc++-v3/libsupc++ -L/home/dimhen/build/gcc_r213529_rtl/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/dimhen/build/gcc_r213529_rtl/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -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 -DHAVE_CONFIG_H -I. -I. -I/home/dimhen/src/gcc_r213529/gcc -I/home/dimhen/src/gcc_r213529/gcc/. -I/home/dimhen/src/gcc_r213529/gcc/../include -I/home/dimhen/src/gcc_r213529/gcc/../libcpp/include -I/home/dimhen/build/gcc_r213529_rtl/./gmp -I/home/dimhen/src/gcc_r213529/gmp -I/home/dimhen/build/gcc_r213529_rtl/./mpfr -I/home/dimhen/src/gcc_r213529/mpfr -I/home/dimhen/src/gcc_r213529/mpc/src -I/home/dimhen/src/gcc_r213529/gcc/../libdecnumber -I/home/dimhen/src/gcc_r213529/gcc/../libdecnumber/bid -I../libdecnumber -I/home/dimhen/src/gcc_r213529/gcc/../libbacktrace -DCLOOG_INT_GMP -I/home/dimhen/build/gcc_r213529_rtl/./cloog/include -I/home/dimhen/src/gcc_r213529/cloog/include -I/home/dimhen/build/gcc_r213529_rtl/./isl/include -I/home/dimhen/src/gcc_r213529/isl/include -o loop-unroll.o -MT loop-unroll.o -MMD -MP -MF ./.deps/loop-unroll.TPo /home/dimhen/src/gcc_r213529/gcc/loop-unroll.c /home/dimhen/src/gcc_r213529/gcc/loop-unroll.c: In function 'rtx_def** get_ivts_expr(rtx, iv_to_split*)': /home/dimhen/src/gcc_r213529/gcc/loop-unroll.c:2095:10: error: function may return address of local variable [-Werror=return-local-addr] return ret; ^ /home/dimhen/src/gcc_r213529/gcc/loop-unroll.c:2087:20: note: declared here get_ivts_expr (rtx expr, struct iv_to_split *ivts) ^ cc1plus: all warnings being treated as errors make[3]: *** [loop-unroll.o] Error 1 make[3]: Leaving directory `/home/dimhen/build/gcc_r213529_rtl/gcc'