Re: Non-optimal stack usage with C++ temporaries

2011-05-12 Thread Richard Guenther
On Wed, May 11, 2011 at 10:15 PM, Matt Fischer wrote: > I've noticed some behavior with g++ that seems strange to me.  I don't > know if there's some technicality in the C++ standard that requires > this, or if it's just a limitation to the optimization code, but it > seemed strange so I thought I

Non-optimal stack usage with C++ temporaries

2011-05-11 Thread Matt Fischer
I've noticed some behavior with g++ that seems strange to me. I don't know if there's some technicality in the C++ standard that requires this, or if it's just a limitation to the optimization code, but it seemed strange so I thought I'd see if anybody could shed more light on it. Here's a test p