Go patch committed: Use temps for calls with multiple results

Ian Lance Taylor iant@google.com
Mon Aug 1 01:45:00 GMT 2011


This patch changes the Go frontend such that the representation of calls
with multiple results uses temporary variables rather than relying on
expanding such calls while expanding Call_multiple_result expressions.
Unfortunately I can't yet get rid of Call_multiple_result expressions as
they are needed to represent the point of the call in order to ensure
that the call is executed in the right order.  Maybe later.  In the
meantime this is a small cleanup and simplification of the IR.
Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 60899 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110801/3b538094/attachment.bin>


More information about the Gcc-patches mailing list