* c-decl.c (poplevel): Invoke warn_about_unused_variables.
From-SVN: r36531
This commit is contained in:
parent
0b534c3f27
commit
8e5a0fcb75
2 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
2000-09-19 Richard Henderson <rth@cygnus.com>
|
2000-09-19 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
|
* c-decl.c (poplevel): Invoke warn_about_unused_variables.
|
||||||
|
|
||||||
* unroll.c (copy_loop_body): Update LABEL_NUSES before
|
* unroll.c (copy_loop_body): Update LABEL_NUSES before
|
||||||
calling invert_jump.
|
calling invert_jump.
|
||||||
|
|
||||||
|
|
|
@ -1100,6 +1100,12 @@ poplevel (keep, reverse, functionbody)
|
||||||
TREE_ADDRESSABLE (DECL_ABSTRACT_ORIGIN (decl)) = 1;
|
TREE_ADDRESSABLE (DECL_ABSTRACT_ORIGIN (decl)) = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We used to warn about unused variables in expand_end_bindings,
|
||||||
|
i.e. while generating RTL. But in function-at-a-time mode we may
|
||||||
|
choose to never expand a function at all (e.g. auto inlining), so
|
||||||
|
we do this explicitly now. */
|
||||||
|
warn_about_unused_variables (getdecls ());
|
||||||
|
|
||||||
/* If there were any declarations or structure tags in that level,
|
/* If there were any declarations or structure tags in that level,
|
||||||
or if this level is a function body,
|
or if this level is a function body,
|
||||||
create a BLOCK to record them for the life of this function. */
|
create a BLOCK to record them for the life of this function. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue