Rainer Orth <r...@cebitec.uni-bielefeld.de> writes:

> On recent Solaris 11, I also have:
>
> const __PATH_SYSVOL = "/system/volatile"
> const __PATH_UTMPX = __PATH_SYSVOL "/utmpx"
> const __PATH_VARRUN = __PATH_SYSVOL "/"
>
> For the moment, I'm just omitting the offending declarations in
> mksysinfo.sh.

This patch should fix this problem.  Bootstrapped and ran Go testsuite
on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian


2011-05-24  Ian Lance Taylor  <i...@google.com>

        * godump.c (go_define): Don't accept a string immediately after
        another operand.


Index: godump.c
===================================================================
--- godump.c	(revision 174140)
+++ godump.c	(working copy)
@@ -300,7 +300,11 @@ go_define (unsigned int lineno, const ch
 	case '"':
 	case '\'':
 	  {
-	    char quote = *p;
+	    char quote;
+
+	    if (saw_operand)
+	      goto unknown;
+	    quote = *p;
 	    *q++ = *p++;
 	    while (*p != quote)
 	      {

Reply via email to