Fix uses of -mno-fp-in-toc and -mrelocatable
authorMichael Meissner <meissner@gcc.gnu.org>
Fri, 28 Feb 1997 21:14:42 +0000 (21:14 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 28 Feb 1997 21:14:42 +0000 (21:14 +0000)
From-SVN: r13682

gcc/config/rs6000/rs6000.md

index a85ee898df07c2678ca287cca4db2697ece68108..3f932e68aa225201d91ac44f2c4ef1fc04d3f5e4 100644 (file)
       && GET_CODE (operands[1]) != HIGH
       && ! LEGITIMATE_CONSTANT_POOL_ADDRESS_P (operands[1]))
     {
+      /* Emit a USE operation so that the constant isn't deleted if
+        expensive optimizations are turned on because nobody
+        references it */
+      emit_insn (gen_rtx (USE, VOIDmode, operands[1]));
+
       /* If we are to limit the number of things we put in the TOC and
         this is a symbol plus a constant we can add in one insn,
         just put the symbol in the TOC and add the constant.  Don't do