[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 18:55:00 GMT 2014


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

--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> That said, an interesting question is why we don't warn about this without
> rtl checking, the function still returns address of the parameter.  Is that
> because it is inlined in that case and so we don't warn then?

That seems likely, RTL checking may make the function large enough not to be
inlined. Compiling without RTL checking but with -fkeep-inline-functions
probably warns as well then.



More information about the Gcc-bugs mailing list