summaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authorzadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-16 16:00:03 +0000
committerzadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-16 16:00:03 +0000
commit219f324690529d5ca26ae2081aaee8209132005d (patch)
treee4923e4057c64784d168a19337e5b737023e6a24 /gcc/config/darwin.c
parent2e9ff52988fcaed2f81a061fc79bb3ed70abaac7 (diff)
downloadgcc-219f324690529d5ca26ae2081aaee8209132005d.tar.gz
made rs6000 port support CONST_WIDE_INT
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@203710 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 2a659483ce2..f882cb86a17 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -1709,16 +1709,19 @@ machopic_select_rtx_section (enum machine_mode mode, rtx x,
{
if (GET_MODE_SIZE (mode) == 8
&& (GET_CODE (x) == CONST_INT
+ || GET_CODE (x) == CONST_WIDE_INT
|| GET_CODE (x) == CONST_DOUBLE))
return darwin_sections[literal8_section];
else if (GET_MODE_SIZE (mode) == 4
&& (GET_CODE (x) == CONST_INT
+ || GET_CODE (x) == CONST_WIDE_INT
|| GET_CODE (x) == CONST_DOUBLE))
return darwin_sections[literal4_section];
else if (HAVE_GAS_LITERAL16
&& TARGET_64BIT
&& GET_MODE_SIZE (mode) == 16
&& (GET_CODE (x) == CONST_INT
+ || GET_CODE (x) == CONST_WIDE_INT
|| GET_CODE (x) == CONST_DOUBLE
|| GET_CODE (x) == CONST_VECTOR))
return darwin_sections[literal16_section];