diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/dwarf2asm.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 56429ef267c..bac8274d03e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2001-11-13 Richard Henderson <rth@redhat.com> + * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC + as appropriate for the artificial decl. + +2001-11-13 Richard Henderson <rth@redhat.com> + * loop.c (combine_movables): Turn off combination until move_movables validation bugs are fixed. 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; } |