summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-typeck.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 329aad73351..33475adab3f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2001-08-08 Graham Stott <grahams@redhat.com>
+ * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
+ parameter.
+
+2001-08-08 Graham Stott <grahams@redhat.com>
+
* combine.c (combine_simplify_rtx): Update comment and
remove erroneous test.
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index ecd106081f2..e92749fbe30 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -4494,7 +4494,7 @@ static int spelling_size; /* Size of the spelling stack. */
Alternative to SAVE_SPELLING_STACK. */
#define SPELLING_DEPTH() (spelling - spelling_base)
-#define RESTORE_SPELLING_DEPTH(depth) (spelling = spelling_base + depth)
+#define RESTORE_SPELLING_DEPTH(DEPTH) (spelling = spelling_base + (DEPTH))
/* Save and restore the spelling stack around arbitrary C code. */
OpenPOWER on IntegriCloud