aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2asm.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-11-13 16:40:28 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-11-13 16:40:28 -0800
commita8988448c2bc806f90672a1a8609a4a52890a412 (patch)
tree6b5fec6b68ea1ee14fc03715704da43153ab09fb /gcc/dwarf2asm.c
parentdc637ad798886a7f16ded45ac77492773a8eb05f (diff)
downloadgcc-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.c2
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;
}