re PR c/14516 (-fleading-underscore does not work correctly for file static variables)
authorGeoffrey Keating <geoffk@apple.com>
Thu, 5 Aug 2004 05:52:01 +0000 (05:52 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Thu, 5 Aug 2004 05:52:01 +0000 (05:52 +0000)
commit0e6df31e198fd8c0ab0daacc631de05365c2c216
treedd22110790902e6a0fb0065c11210552323ea19e
parent99b1c586a59f235bb36457739f40ffe98fb18b66
re PR c/14516 (-fleading-underscore does not work correctly for file static variables)

2004-08-04  Geoffrey Keating  <geoffk@apple.com>

PR 14516
* c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
* c-common.h (make_rtl_for_local_static): Delete.
* c-decl.c (shadow_tag_warned): Clean up comment.
(finish_decl): Clean up spacing.  Use set_user_assembler_name when
appropriate.  Don't pass asmspec to rest_of_decl_compilation.
* c-semantics.c (make_rtl_for_local_static): Delete.
* expr.c (init_block_move_fn): Use set_user_assembler_name.
(init_block_clear_fn): Likewise.
* passes.c (rest_of_decl_compilation): Remove asmspec parameter,
expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
* toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
* tree.h (make_decl_rtl): Remove second parameter.
(set_user_assembler_name): New.
* varasm.c (set_user_assembler_name): New.
(make_decl_rtl): Remove second parameter.  Update callers in many
files.

Index: cp/ChangeLog
2004-08-04  Geoffrey Keating  <geoffk@apple.com>

* decl.c (make_rtl_for_nonlocal_decl): Set DECL_ASSEMBLER_NAME rather
than passing it as a parameter to rest_of_decl_compilation.
* decl2.c (grokfield): Use set_user_assembler_name.

From-SVN: r85593
32 files changed:
gcc/ChangeLog
gcc/ada/utils.c
gcc/c-common.c
gcc/c-common.h
gcc/c-decl.c
gcc/c-semantics.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/method.c
gcc/expr.c
gcc/fortran/f95-lang.c
gcc/fortran/trans-decl.c
gcc/fortran/trans-intrinsic.c
gcc/fortran/trans-types.c
gcc/java/builtins.c
gcc/java/class.c
gcc/java/constants.c
gcc/java/decl.c
gcc/java/except.c
gcc/java/expr.c
gcc/java/resource.c
gcc/objc/objc-act.c
gcc/passes.c
gcc/toplev.c
gcc/toplev.h
gcc/tree.h
gcc/treelang/treetree.c
gcc/varasm.c