Don't emit adjacent operands in -fdump-go-spec

Ian Lance Taylor iant@google.com
Sat Jan 29 10:06:00 GMT 2011


This patch changes -fdump-go-spec to avoid emitting two adjacent
operands.  That sometimes happens when C code is using string
concatenation.  It would be possible in principle to use turn C adjacent
string concatenation to use Go's + operator, but for the current uses of
-fdump-go-spec that is an unimportant tweak.  Bootstrapped and ran Go
testsuite on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian


2011-01-28  Ian Lance Taylor  <iant@google.com>

	* godump.c (go_define): Ignore macros whose definitions include
	two adjacent operands.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 375 bytes
Desc: concat
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110129/9e1d7ec6/attachment.bin>


More information about the Gcc-patches mailing list