Patch: IA64 patch for PR target/27051, not honoring -mno-sdata.

Steve Ellcey sje@cup.hp.com
Fri Apr 21 23:40:00 GMT 2006


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);



More information about the Gcc-patches mailing list