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 tree-optimization/61203] [4.8/4.9/4.10 Regression] g++.old-deja/g++.jason/rvalue2.C FAILs with -O2 -fno-inline


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.


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