summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/godump.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 714bc44e34a..bcdf7afb464 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/godump.c b/gcc/godump.c
index 42b8839c2f6..7ee7af0e861 100644
--- a/gcc/godump.c
+++ b/gcc/godump.c
@@ -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;