summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-28 04:53:24 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-28 04:53:24 +0000
commit4d0876abe8aa84ef5dd8a42c74c6a8bb76197afc (patch)
tree44a81b14bc3f4afc89eab024dbff5c6f511d0790 /gcc/tree-ssa-alias.c
parent0aeeadee56a4f220d49e4e8b51ad7f95260ea9eb (diff)
downloadgcc-4d0876abe8aa84ef5dd8a42c74c6a8bb76197afc.tar.gz
PR tree-optimization/16705
* tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on .GLOBAL_VAR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85254 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 033a7073a8a..64476ebe301 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -2202,7 +2202,7 @@ create_global_var (void)
size_type_node);
DECL_ARTIFICIAL (global_var) = 1;
TREE_READONLY (global_var) = 0;
- DECL_EXTERNAL (global_var) = 0;
+ DECL_EXTERNAL (global_var) = 1;
TREE_STATIC (global_var) = 1;
TREE_USED (global_var) = 1;
DECL_CONTEXT (global_var) = NULL_TREE;