[Bug tree-optimization/114206] recursive function call vs local variable addresses
xry111 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 2 11:06:38 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114206
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
CC| |xry111 at gcc dot gnu.org
--- Comment #4 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> I think both 0 and 1 are correct here.
>
> The question becomes does the address of b need to be different between
> different calls of f. I am not 100% convinced it needs to be different.
It looks like they needs to be different as they refer different objects and
the lifetime of both object has still not ended when comparing them.
More information about the Gcc-bugs
mailing list