diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-14 00:40:28 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-14 00:40:28 +0000 |
commit | c21e07dcf1b3eb29c8f6d2847000ea74f6337ece (patch) | |
tree | 6b5fec6b68ea1ee14fc03715704da43153ab09fb /gcc/dwarf2asm.c | |
parent | 662b532b829c929743313942c060264978cd8736 (diff) | |
download | gcc-c21e07dcf1b3eb29c8f6d2847000ea74f6337ece.tar.gz |
* dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
as appropriate for the artificial decl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46997 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2asm.c')
-rw-r--r-- | gcc/dwarf2asm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c index 05a1ed81487..3adb7e5dcf6 100644 --- a/gcc/dwarf2asm.c +++ b/gcc/dwarf2asm.c @@ -791,6 +791,7 @@ dw2_force_const_mem (x) id = get_identifier (ref_name); decl = build_decl (VAR_DECL, id, ptr_type_node); DECL_ARTIFICIAL (decl) = 1; + TREE_PUBLIC (decl) = 1; DECL_INITIAL (decl) = decl; make_decl_one_only (decl); } @@ -804,6 +805,7 @@ dw2_force_const_mem (x) id = get_identifier (label); decl = build_decl (VAR_DECL, id, ptr_type_node); DECL_ARTIFICIAL (decl) = 1; + TREE_STATIC (decl) = 1; DECL_INITIAL (decl) = decl; } |