diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2004-07-21 19:23:03 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2004-07-21 19:23:03 +0000 |
commit | caf93cb0d55b2a7d00eee250b5880a53205eef7c (patch) | |
tree | 62d1d9e6aa0313957234dd1e34bd0b74115418e7 /gcc/c-decl.c | |
parent | d942072cb0b0ffebeff215e3ee182e882ffcbf9e (diff) | |
download | gcc-caf93cb0d55b2a7d00eee250b5880a53205eef7c.zip gcc-caf93cb0d55b2a7d00eee250b5880a53205eef7c.tar.gz gcc-caf93cb0d55b2a7d00eee250b5880a53205eef7c.tar.bz2 |
builtins.c (expand_builtin_setjmp_receiver): Fix comment for code removal.
2004-07-21 Eric Christopher <echristo@redhat.com>
* builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
removal.
* c-decl.c (pop_scope): Ditto.
* calls.c (expand_call): Remove call to current_nesting_level,
update comment accordingly. Remove calls to expand_start_target_temps
and expand_end_target_temps.
* cfgexpand.c (construct_init_block): Remove call to
expand_start_bindings_and_block.
(construct_exit_block): Remove call to expand_end_bindings.
* expr.c (safe_from_p): Remove BIND_EXPR handling.
(expand_expr_real_1): Ditto. Fix formatting.
(expand_vars): Delete.
* stmt.c (POPSTACK): Remove block_stack.
(stmt_status): Remove x_block_stack.
(block_stack): Delete.
(expand_start_bindings_and_block): Ditto.
(expand_start_target_temps): Ditto.
(expand_end_target_temps): Ditto.
(current_nesting_level): Ditto.
(warn_about_unused_variables): Ditto.
(expand_end_bindings): Ditto.
* tree.h: Remove declarations for above.
2004-07-21 Eric Christopher <echristo@redhat.com>
* decl.c (poplevel): Inline unused variable checking.
Change formatting.
From-SVN: r85019
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 6414955..c5b50a2 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -746,9 +746,7 @@ pop_scope (void) goto common_symbol; case VAR_DECL: - /* Warnings for unused variables. Keep this in sync with - stmt.c:warn_about_unused_variables, which we cannot use - since it expects a different data structure. */ + /* Warnings for unused variables. */ if (warn_unused_variable && !TREE_USED (p) && !DECL_IN_SYSTEM_HEADER (p) @@ -1951,7 +1949,7 @@ pushdecl (tree x) bind (name, x, file_scope, /*invisible=*/true, /*nested=*/false); nested = true; } - } + } warn_if_shadowing (x); @@ -4516,7 +4514,7 @@ grokdeclarator (tree declarator, tree declspecs, DECL_EXTERNAL (decl) = 0; else DECL_EXTERNAL (decl) = 1; - + /* Record absence of global scope for `static' or `auto'. */ TREE_PUBLIC (decl) = !(specbits & ((1 << (int) RID_STATIC) | (1 << (int) RID_AUTO))); |