Go patch committed: The "main" package is not special with -fgo-prefix

Ian Lance Taylor iant@google.com
Wed Feb 9 22:29:00 GMT 2011


The -fgo-prefix option provides a way to disambiguate Go packages with
the same name.  When the option is used with the package named "main",
that package should not be special.  This permits building code which
imports a package normally named "main", in order to write internal
tests.  This patch to the Go frontend implements this.  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: 4253 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110209/0b3b1b12/attachment.bin>


More information about the Gcc-patches mailing list