[tree-ssa] PATCH to fix thinko in gimplify_return_expr
Jason Merrill
jason@redhat.com
Mon Jun 30 13:56:00 GMT 2003
My earlier patch caused us to duplicate the assignment to the RESULT_DECL
in many cases. Fixed thus.
I also considered using "tsi_last_p" instead of "tsi_one_before_end_p", but
decided that the latter was less potentially confusing.
Tested athlon-pc-linux-gnu, applied to tree-ssa.
2003-06-30 Jason Merrill <jason@redhat.com>
* gimplify.c (gimplify_modify_expr): Also force a call with a
possible nonlocal goto into a temporary.
(gimplify_return_expr): Don't duplicate the MODIFY_EXPR.
* tree-iterator.h (tsi_one_before_end_p): New fn.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 4317 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030630/a6358272/attachment.bin>
More information about the Gcc-patches
mailing list