]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 1862316b1413613756d251796bc5e75dffe418a5..9d7cd5c1affd1eba32da27b2e4c0e2f6ebd24075 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 41cb31e0bea1fc3753d3f598c302ec8970a88e18..9681d929e4e655eec7ff6a9b59edd9b7c908c777 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));