[Bug bootstrap/62005] [4.10 regression] with --enable-checking=rtl : loop-unroll.c:2095:10: error: function may return address of local variable

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 4 10:24:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62005

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
Ah, I didn't test with --enable-ckecking=rtl.

We could split the "maybe" part of the warning and downgrade it to Wextra, but
I'd rather keep it at least in Wall, which means we need to change the
loop-unroll code anyway.

The code is not easy to understand. For instance, I don't see where n_loc can
be set to any value other than 1? That would make it easy to simplify this
loop...



More information about the Gcc-bugs mailing list