aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-12-06 13:26:09 +0000
committerRichard Guenther <rguenther@suse.de>2011-12-06 13:26:09 +0000
commiteaab70bfc215e3fb8dae3ed1b0dc84dfd02452c1 (patch)
tree345ea4ddcc6a7538d7ce16b7722a60aa7d081fd9 /gcc/varasm.c
parent0b4afdf6177de396cc7c6f058da6e6d269a0b8d5 (diff)
2011-12-06 Richard Guenther <rguenther@suse.de>
PR middle-end/50601 * varasm.c (assemble_alias): Move DECL_EXTERNAL implementation quirk adjustjment ... * passes.c (rest_of_decl_compilation): ... here. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@182048 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 8d555487818..78dc4cd83f0 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -5794,14 +5794,11 @@ void
assemble_alias (tree decl, tree target)
{
tree target_decl;
- bool is_weakref = false;
if (lookup_attribute ("weakref", DECL_ATTRIBUTES (decl)))
{
tree alias = DECL_ASSEMBLER_NAME (decl);
- is_weakref = true;
-
ultimate_transparent_alias_target (&target);
if (alias == target)
@@ -5839,12 +5836,6 @@ assemble_alias (tree decl, tree target)
}
TREE_USED (decl) = 1;
- /* A quirk of the initial implementation of aliases required that the user
- add "extern" to all of them. Which is silly, but now historical. Do
- note that the symbol is in fact locally defined. */
- if (! is_weakref)
- DECL_EXTERNAL (decl) = 0;
-
/* Allow aliases to aliases. */
if (TREE_CODE (decl) == FUNCTION_DECL)
cgraph_get_create_node (decl)->alias = true;