diff options
| author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-29 15:37:29 +0000 |
|---|---|---|
| committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-29 15:37:29 +0000 |
| commit | f1c94b5580c2833b4e24cd14de9bcc246b209269 (patch) | |
| tree | 689501abab0bcf8ec5a3d3c534f71588bc8a79c1 /gcc/varasm.c | |
| parent | 1b062bfff76a24826c36d95770c8f2cb4dd76f39 (diff) | |
| download | ppe42-gcc-f1c94b5580c2833b4e24cd14de9bcc246b209269.tar.gz ppe42-gcc-f1c94b5580c2833b4e24cd14de9bcc246b209269.zip | |
PR middle-end/20622
* cgraph.h (struct cgraph_varpool_node): Add alias field.
* cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
assemble_variable on aliases.
* varasm.c (assemble_alias): Set node->alias.
* toplev.c (wrapup_global_declarations): Don't call
rest_of_decl_compilation on aliases again.
* gcc.dg/alias-7.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
| -rw-r--r-- | gcc/varasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 751c8bce959..c51f6c045d6 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -4518,7 +4518,7 @@ assemble_alias (tree decl, tree target) if (TREE_CODE (decl) == FUNCTION_DECL) cgraph_node (decl); else - cgraph_varpool_node (decl); + cgraph_varpool_node (decl)->alias = true; /* If the target has already been emitted, we don't have to queue the alias. This saves a tad o memory. */ |

