aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1997-02-28 21:14:42 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1997-02-28 21:14:42 +0000
commitd302f4f2a88274bfe4a903ea5da14af822b50752 (patch)
tree510162ade684817921ecc9a407de8235aa34fe9c /gcc
parent6052e61938ffbda81245f1f31710ce4e50241e38 (diff)
downloadgcc-d302f4f2a88274bfe4a903ea5da14af822b50752.zip
gcc-d302f4f2a88274bfe4a903ea5da14af822b50752.tar.gz
gcc-d302f4f2a88274bfe4a903ea5da14af822b50752.tar.bz2
Fix uses of -mno-fp-in-toc and -mrelocatable
From-SVN: r13682
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/rs6000.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index a85ee89..3f932e6 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -5162,6 +5162,11 @@
&& 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