This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69433] missing -Wreturn-local-addr assigning address of a local to a static


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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>IMO we should look into why this optimization doesn't happen before PRE (why not FRE for instance?).


Because the reads from s are only partially redundant (PRE) and not fully (vs
FRE). :)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]