This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: IA64 patch for PR target/27051, not honoring -mno-sdata.
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 Apr 2006 16:40:24 -0700 (PDT)
- Subject: Patch: IA64 patch for PR target/27051, not honoring -mno-sdata.
- Reply-to: sje at cup dot hp dot com
IA64 is not honoring the -mno-sdata flag and will put things in sdata
anyway. This patch fixes the problem.
I think this has always been broken so I was just going to fix it on the
main line. The bug was reported against GCC 3.4.5 and it could easily
be ported to the other branches if desired.
Tested on ia64-hp-hpux11.23. Ok to checkin?
Steve Ellcey
sje@cup.hp.com
2006-04-21 Steve Ellcey <sje@cup.hp.com>
PR target/27051
* config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
Index: config/ia64/ia64.c
===================================================================
--- config/ia64/ia64.c (revision 113151)
+++ config/ia64/ia64.c (working copy)
@@ -9307,7 +9307,8 @@ ia64_select_rtx_section (enum machine_mo
unsigned HOST_WIDE_INT align)
{
if (GET_MODE_SIZE (mode) > 0
- && GET_MODE_SIZE (mode) <= ia64_section_threshold)
+ && GET_MODE_SIZE (mode) <= ia64_section_threshold
+ && !TARGET_NO_SDATA)
return sdata_section;
else
return default_elf_select_rtx_section (mode, x, align);