alpha.c (alpha_in_small_data_p): Return false for STRING_CST.
authorRichard Henderson <rth@redhat.com>
Tue, 28 May 2002 08:42:20 +0000 (01:42 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 28 May 2002 08:42:20 +0000 (01:42 -0700)
        * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
        STRING_CST.

From-SVN: r53952

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

index 1862316..9d7cd5c 100644 (file)
@@ -1,5 +1,10 @@
 2002-05-28  Richard Henderson  <rth@redhat.com>
 
+       * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
+       STRING_CST.
+
+2002-05-28  Richard Henderson  <rth@redhat.com>
+
        * config.gcc: Obsolete mn10200.
 
 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
index 41cb31e..9681d92 100644 (file)
@@ -1584,6 +1584,10 @@ static bool
 alpha_in_small_data_p (exp)
      tree exp;
 {
+  /* We want to merge strings, so we never consider them small data.  */
+  if (TREE_CODE (exp) == STRING_CST)
+    return false;
+
   if (TREE_CODE (exp) == VAR_DECL && DECL_SECTION_NAME (exp))
     {
       const char *section = TREE_STRING_POINTER (DECL_SECTION_NAME (exp));