Go patch committed: Implement goto restrictions

Ian Lance Taylor iant@google.com
Tue Sep 20 22:18:00 GMT 2011


The Go language has clarified the use of goto.  It is now invalid to use
goto to jump into an inner block, and to use goto to jump across a
variable declaration.  This patch to the Go frontend implements these
restrictions, and adjust one library and a few test cases accordingly.
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: 18541 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110920/996e1d5a/attachment.bin>


More information about the Gcc-patches mailing list