]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Repair hpux bootstrap using native assembler.
authorBernd Schmidt <bernds@redhat.co.uk>
Thu, 25 Jan 2001 13:06:51 +0000 (13:06 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 25 Jan 2001 13:06:51 +0000 (13:06 +0000)
From-SVN: r39262

gcc/ChangeLog
gcc/varasm.c

index 7c3dbdd255b0f092820392fbf95b82ed1ab06706..42c6103f310c3b8c77b95aa500a35b4f16c8e977 100644 (file)
@@ -1,3 +1,9 @@
+2001-01-25  Bernd Schmidt  <bernds@redhat.co.uk>
+
+       * varasm.c (force_const_mem): When putting a LABEL_REF into the
+       constant pool, also put it on forced_labels list so that it won't
+       be deleted.
+
 2001-01-12  Bernd Schmidt  <bernds@redhat.co.uk>
 
        * version.c: Bump.
index f463d847d4ad742f3d745d5bccabf6cc42c2de4a..479ebe9c40b39efa2f12071e4b4aea9d89845bdd 100644 (file)
@@ -3493,6 +3493,18 @@ force_const_mem (mode, x)
 
          pop_obstacks ();
        }
+      if (GET_CODE (x) == LABEL_REF)
+       {
+         extern rtx forced_labels;
+
+         push_obstacks_nochange ();
+         rtl_in_saveable_obstack ();
+
+         forced_labels = gen_rtx_EXPR_LIST (VOIDmode,
+                                            XEXP (x, 0),
+                                            forced_labels);
+         pop_obstacks ();
+       }
 
       /* Allocate a pool constant descriptor, fill it in, and chain it in.  */