This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix .literal8 handling in 64-bit Darwin
- From: Stan Shebs <shebs at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 18 Feb 2005 16:15:58 -0800
- Subject: Fix .literal8 handling in 64-bit Darwin
This patch has been kicking around Apple sources for a couple months,
and turns out to be needed to make 64-bit boehm-gc build too.
Bootstrapped and testsuited, no regressions observed.
Stan
2005-02-18 Stan Shebs <shebs@apple.com>
* config/darwin.c (machopic_select_rtx_section): Don't put
relocatable
expressions in the .literal8 section.
*** config/darwin.c 23 Jan 2005 15:05:36 -0000 1.107
--- config/darwin.c 19 Feb 2005 00:04:48 -0000
*************** void
*** 1156,1162 ****
machopic_select_rtx_section (enum machine_mode mode, rtx x,
unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED)
{
! if (GET_MODE_SIZE (mode) == 8)
literal8_section ();
else if (GET_MODE_SIZE (mode) == 4
&& (GET_CODE (x) == CONST_INT
--- 1156,1164 ----
machopic_select_rtx_section (enum machine_mode mode, rtx x,
unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED)
{
! 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