This is the mail archive of the gcc-patches@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]

Re: New option to turn off stack reuse for temporaries


On 06/21/2012 02:21 AM, Richard Guenther wrote:
The flag is not restricted to the C++ compiler and applies to all automatic
variables.

This only affects the clobbers for C++ temporary objects, not clobbers for automatic variables going out of scope.


Also with this patch you remove code motion barriers which might cause
other issues.

How so?


A more "proper" place to fix this is when we actually do the stack reuse,
in cfgexpand.

How would that distinguish between the clobbers for temporaries vs. automatics?


Jason


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