summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-19 00:08:06 +0000
committershebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-19 00:08:06 +0000
commitf2e8796eb419a326380ff0757d2c76a770d2e651 (patch)
treea98d97959d6de1a3c592ab7c8cd04ca2b6ef5463
parentb6e337c43dcbb38981f13127fdec585cd1a38b9c (diff)
downloadppe42-gcc-f2e8796eb419a326380ff0757d2c76a770d2e651.tar.gz
ppe42-gcc-f2e8796eb419a326380ff0757d2c76a770d2e651.zip
* config/darwin.c (machopic_select_rtx_section): Don't put relocatable
expressions in the .literal8 section. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95250 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/darwin.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9fdbb702862..fb85c878ad6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index de2f6e3e0b6..6a547384aae 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -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
OpenPOWER on IntegriCloud