This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69433] missing -Wreturn-local-addr assigning address of a local to a static
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 26 Aug 2017 07:46:23 +0000
- Subject: [Bug c++/69433] missing -Wreturn-local-addr assigning address of a local to a static
- Auto-submitted: auto-generated
- References: <bug-69433-4@http.gcc.gnu.org/bugzilla/>
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). :)