This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.1.1] UNIQUE_SECTION on ia64
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 30 May 2002 14:43:15 +0200
- Subject: [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."