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
This commit is contained in:
Richard Henderson 2001-11-13 16:40:28 -08:00 committed by Richard Henderson
parent dc637ad798
commit a8988448c2
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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;
}