diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85123c46f3a..adf9960e6a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Jun 15 13:20:33 1998 Jim Wilson + + * c-decl.c (shadow_tag_warned): Use specs not declspecs in for loop. + Mon Jun 15 15:33:45 1998 Michael Meissner * regmove.c: Undo June 11th change for now. diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 0f5d21cba54..4fadf3b12a7 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3577,7 +3577,7 @@ shadow_tag_warned (declspecs, warned) following code. */ split_specs_attrs (declspecs, &specs, &attrs); - for (link = declspecs; link; link = TREE_CHAIN (link)) + for (link = specs; link; link = TREE_CHAIN (link)) { register tree value = TREE_VALUE (link); register enum tree_code code = TREE_CODE (value);