This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/61203] [4.8/4.9/4.10 Regression] g++.old-deja/g++.jason/rvalue2.C FAILs with -O2 -fno-inline
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Jul 2014 14:16:05 +0000
- Subject: [Bug tree-optimization/61203] [4.8/4.9/4.10 Regression] g++.old-deja/g++.jason/rvalue2.C FAILs with -O2 -fno-inline
- Auto-submitted: auto-generated
- References: <bug-61203-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61203
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |matz at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This started with r181332. forwprop3 moves the comparison after the CLOBBER
stmt and IPA opts change the method so that it doesn't take the argument that
it doesn't use, so there are no references to a anymore before the temporary
goes out of scope and expansion decides to allocate them at the same spot. No
idea what to do against this though, treating a CLOBBER as a barrier for
propagation of addresses to other local variables would penalize stuff way too
much. And giving up on stack slot sharing because of such an artificial
testcase is not useful either.