From 7463cbdfa9bf4c9dfaac8d33efa9858f4292f7d5 Mon Sep 17 00:00:00 2001 From: echristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Sun, 10 Sep 2006 07:09:38 +0000 Subject: [PATCH] 2006-09-09 Eric Christopher <echristo@apple.com> PR target/28995 * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT for literal16. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116810 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/darwin.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c2b0ef201fac..1acac7f654b8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-09-09 Eric Christopher <echristo@apple.com> + + PR target/28995 + * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT + for literal16. + 2006-09-09 Roger Sayle <roger@eyesopen.com> Nicolas Setton <setton@adacore.com> diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 77e2f0e31c41..6ceb80849047 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1239,7 +1239,8 @@ machopic_select_rtx_section (enum machine_mode mode, rtx x, && (GET_CODE (x) == CONST_INT || GET_CODE (x) == CONST_DOUBLE)) return darwin_sections[literal4_section]; - else if (GET_MODE_SIZE (mode) == 16 + else if (TARGET_64BIT + && GET_MODE_SIZE (mode) == 16 && (GET_CODE (x) == CONST_INT || GET_CODE (x) == CONST_DOUBLE)) return darwin_sections[literal16_section]; -- GitLab