Make fp constants hard if -fpic
authorMichael Meissner <meissner@gcc.gnu.org>
Tue, 9 Jul 1996 21:42:13 +0000 (21:42 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Tue, 9 Jul 1996 21:42:13 +0000 (21:42 +0000)
From-SVN: r12420

gcc/config/rs6000/rs6000.c

index ea35f4c59fec816b47085b319631d722caf72907..408661c1dbccd48d39e1700563c52cd5c94e5c61 100644 (file)
@@ -666,6 +666,10 @@ easy_fp_constant (op, mode)
   if (TARGET_SOFT_FLOAT && mode != DImode)
     return 1;
 
+  /* If we are using V.4 style PIC, consider all constants to be hard */
+  if (flag_pic && (DEFAULT_ABI == ABI_V4 || DEFAULT_ABI == ABI_SOLARIS))
+    return 0;
+
   if (mode == DFmode)
     {
       long k[2];