godump.c (go_define): Ignore macros whose definitions include two adjacent operands.
authorIan Lance Taylor <iant@google.com>
Sat, 29 Jan 2011 02:32:28 +0000 (02:32 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sat, 29 Jan 2011 02:32:28 +0000 (02:32 +0000)
* godump.c (go_define): Ignore macros whose definitions include
two adjacent operands.

From-SVN: r169385

gcc/ChangeLog
gcc/godump.c

index 714bc44e34a054c0012528fca87f1f6016754464..bcdf7afb464eeb8e46f9c3ff735e5e9fc777935b 100644 (file)
@@ -1,3 +1,8 @@
+2011-01-28  Ian Lance Taylor  <iant@google.com>
+
+       * godump.c (go_define): Ignore macros whose definitions include
+       two adjacent operands.
+
 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/42894
index 42b8839c2f68fbcb5910757d42563517fc7ea11a..7ee7af0e861ab23b8c5faa3a5e106aad312c65a9 100644 (file)
@@ -142,6 +142,9 @@ go_define (unsigned int lineno, const char *buffer)
            const char *start;
            char *n;
 
+           if (saw_operand)
+             goto unknown;
+
            start = p;
            while (ISALNUM (*p) || *p == '_')
              ++p;