Re: PATCH for to use tree clobbers for c++/51060 (temporary re-use)

2012-05-29 Thread H.J. Lu
On Thu, May 3, 2012 at 3:39 PM, H.J. Lu hjl.to...@gmail.com wrote: On Sat, Nov 12, 2011 at 4:42 PM, Jason Merrill ja...@redhat.com wrote: Now that we have a way of explicitly marking a variable as dead, we can use that to indicate the end of a temporary's lifetime by adding it as a cleanup for

Re: PATCH for to use tree clobbers for c++/51060 (temporary re-use)

2012-05-03 Thread H.J. Lu
On Sat, Nov 12, 2011 at 4:42 PM, Jason Merrill ja...@redhat.com wrote: Now that we have a way of explicitly marking a variable as dead, we can use that to indicate the end of a temporary's lifetime by adding it as a cleanup for that temporary.  Since gimple_push_cleanup still deals in trees I

PATCH for to use tree clobbers for c++/51060 (temporary re-use)

2011-11-12 Thread Jason Merrill
Now that we have a way of explicitly marking a variable as dead, we can use that to indicate the end of a temporary's lifetime by adding it as a cleanup for that temporary. Since gimple_push_cleanup still deals in trees I needed to tweak a couple of places to avoid trying to treat a clobber