OSDN Git Service

* godump.c (go_define): Ignore macros whose definitions include
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 29 Jan 2011 02:32:28 +0000 (02:32 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 29 Jan 2011 02:32:28 +0000 (02:32 +0000)
two adjacent operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169385 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/godump.c

index 714bc44..bcdf7af 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 42b8839..7ee7af0 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;