* config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Mar 2004 06:30:06 +0000 (06:30 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Mar 2004 06:30:06 +0000 (06:30 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79054 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/alpha/alpha.c

index 4ca0747..8455840 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-06  Richard Henderson  <rth@redhat.com>
+
+       * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
+
 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/ns32k/ns32k-protos.h: Add a prototype for
index 8c9945b..061113c 100644 (file)
@@ -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));