This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[3.1.1] UNIQUE_SECTION on ia64


Unfortunately, my patch for UNIQUE_SECTION on ia64 wasn't properly tested,
and it doesn't handle FUNCTION_DECLs.  Commited as obvious.

Andreas.

2002-05-30  Andreas Schwab  <schwab@suse.de>

	* config/ia64/sysv4.h (DO_SELECT_SECTION): Also handle
	FUNCTION_DECLs.

--- gcc/config/ia64/sysv4.h.~1.20.8.2.~	2002-05-13 21:00:20.000000000 +0200
+++ gcc/config/ia64/sysv4.h	2002-05-29 19:41:00.000000000 +0200
@@ -156,7 +156,9 @@ do {									\
 #define DO_SELECT_SECTION(SECNUM, DECL, RELOC)				\
   do									\
     {									\
-      if (TREE_CODE (DECL) == STRING_CST)				\
+      if (TREE_CODE (DECL) == FUNCTION_DECL)				\
+	SECNUM = 0;							\
+      else if (TREE_CODE (DECL) == STRING_CST)				\
 	{								\
 	  if (! flag_writable_strings)					\
 	    SECNUM = 0x101;						\

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]