]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Nov 2001 00:40:28 +0000 (00:40 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Nov 2001 00:40:28 +0000 (00:40 +0000)
        as appropriate for the artificial decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46997 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2asm.c

index 56429ef267c4168fc8f18c225198ae85e4c0f37c..bac8274d03e8261e732b627a073b6cbf38563f96 100644 (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
index 05a1ed814879cc5c388ca743710d1fc6b5152b84..3adb7e5dcf6278b3a49ff1078c83178583408874 100644 (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;
        }