From: Andreas Schwab Date: Thu, 30 May 2002 12:42:27 +0000 (+0000) Subject: sysv4.h (DO_SELECT_SECTION): Also handle FUNCTION_DECLs. X-Git-Tag: releases/gcc-3.1.1~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=435ac11dc17d0eaa7cf860b1564216d512639ce5;p=thirdparty%2Fgcc.git sysv4.h (DO_SELECT_SECTION): Also handle FUNCTION_DECLs. * config/ia64/sysv4.h (DO_SELECT_SECTION): Also handle FUNCTION_DECLs. From-SVN: r54056 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39ab01b036bc..fb1a86a05b4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-30 Andreas Schwab + + * config/ia64/sysv4.h (DO_SELECT_SECTION): Also handle + FUNCTION_DECLs. + 2002-05-30 Jason Thorpe * config/i386/netbsd64.h (CPP_LP64_SPEC): Define. diff --git a/gcc/config/ia64/sysv4.h b/gcc/config/ia64/sysv4.h index f4550b682dbd..840ebdd97116 100644 --- a/gcc/config/ia64/sysv4.h +++ b/gcc/config/ia64/sysv4.h @@ -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; \