From b79d4265ade84a6cccc3213f0553c00fc160716b Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Sat, 19 Feb 2005 00:08:06 +0000 Subject: darwin.c (machopic_select_rtx_section): Don't put relocatable expressions in the .literal8 section. * config/darwin.c (machopic_select_rtx_section): Don't put relocatable expressions in the .literal8 section. From-SVN: r95250 --- gcc/ChangeLog | 5 +++++ gcc/config/darwin.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9fdbb70..fb85c87 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-02-18 Stan Shebs + + * config/darwin.c (machopic_select_rtx_section): Don't put relocatable + expressions in the .literal8 section. + 2005-02-18 Geoffrey Keating * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker. diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index de2f6e3..6a54738 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 -- cgit v1.1