From 6ac09a46a2734b077e63159cfdb94c0059dec00b Mon Sep 17 00:00:00 2001 From: rth Date: Sun, 7 Mar 2004 06:30:06 +0000 Subject: [PATCH] * config/alpha/alpha.c (alpha_in_small_data_p): False for functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79054 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/alpha/alpha.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ca0747..8455840 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-03-06 Richard Henderson + + * config/alpha/alpha.c (alpha_in_small_data_p): False for functions. + 2004-03-06 Kazu Hirata * config/ns32k/ns32k-protos.h: Add a prototype for diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 8c9945b..061113c 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -1595,6 +1595,10 @@ alpha_in_small_data_p (tree exp) if (TREE_CODE (exp) == STRING_CST) return false; + /* Functions are never in the small data area. Duh. */ + if (TREE_CODE (exp) == FUNCTION_DECL) + return false; + if (TREE_CODE (exp) == VAR_DECL && DECL_SECTION_NAME (exp)) { const char *section = TREE_STRING_POINTER (DECL_SECTION_NAME (exp)); -- 2.7.4