darwin.c (machopic_select_rtx_section): Don't put relocatable expressions in the...
authorStan Shebs <shebs@apple.com>
Sat, 19 Feb 2005 00:08:06 +0000 (00:08 +0000)
committerStan Shebs <shebs@gcc.gnu.org>
Sat, 19 Feb 2005 00:08:06 +0000 (00:08 +0000)
        * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
        expressions in the .literal8 section.

From-SVN: r95250

gcc/ChangeLog
gcc/config/darwin.c

index 9fdbb7028628196fc7fcdb833839ac3f6da6eecd..fb85c878ad6574a9789d0cf95c95e77cdb46bb90 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-18  Stan Shebs  <shebs@apple.com>
+
+       * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
+       expressions in the .literal8 section.
+
 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
 
        * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
index de2f6e3e0b694f7cf004dcb5e1370e2d72f4e358..6a547384aaeb62e07ea4bee1773dff8f03765c20 100644 (file)
@@ -1156,7 +1156,9 @@ void
 machopic_select_rtx_section (enum machine_mode mode, rtx x,
                             unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED)
 {
-  if (GET_MODE_SIZE (mode) == 8)
+  if (GET_MODE_SIZE (mode) == 8
+      && (GET_CODE (x) == CONST_INT
+         || GET_CODE (x) == CONST_DOUBLE))
     literal8_section ();
   else if (GET_MODE_SIZE (mode) == 4
           && (GET_CODE (x) == CONST_INT