diff options
author | Richard Henderson <rth@redhat.com> | 2001-11-13 16:40:28 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-11-13 16:40:28 -0800 |
commit | a8988448c2bc806f90672a1a8609a4a52890a412 (patch) | |
tree | 6b5fec6b68ea1ee14fc03715704da43153ab09fb /gcc/dwarf2asm.c | |
parent | dc637ad798886a7f16ded45ac77492773a8eb05f (diff) | |
download | gcc-a8988448c2bc806f90672a1a8609a4a52890a412.zip gcc-a8988448c2bc806f90672a1a8609a4a52890a412.tar.gz gcc-a8988448c2bc806f90672a1a8609a4a52890a412.tar.bz2 |
dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC as appropriate for the artificial decl.
* dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
as appropriate for the artificial decl.
From-SVN: r46997
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 05a1ed8..3adb7e5 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; } |