gccgo patch committed: Fix initialization order bug

Ian Lance Taylor iant@google.com
Tue Jan 29 00:28:00 GMT 2013


This patch to the Go frontend fixes a bug determining the initialization
order.  I've committed a test case for the bug to the master Go
repository:

https://code.google.com/p/go/source/detail?spec=svn921e53d4863c8827756c0e7b228ab210441e4032&r=c3155f9f1bb64c8b3adb2b6f5527895d51f83b74

The old algorithm was overly clever and frankly I don't know what I was
thinking.  The new algorithm is simpler and probably more efficient.
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: 5395 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130129/f2c2b299/attachment.bin>


More information about the Gcc-patches mailing list