* config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
authorRichard Henderson <rth@redhat.com>
Thu, 17 Apr 2003 19:54:03 +0000 (12:54 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 17 Apr 2003 19:54:03 +0000 (12:54 -0700)
From-SVN: r65747

gcc/ChangeLog
gcc/config/ia64/ia64.c

index e417b189bd7fe48e6f5d776b89a7b2791237e4fb..9f31bf45539bf0070f97e05704134a1400183bdb 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-17  Richard Henderson  <rth@redhat.com>
+
+       * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
+
 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
 
         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
index d7aadb3283fab97945eb6d4c5ad11da8e0b7c36b..ff290bdd78d18f4892e3f87b2c6c7ea9dff80a51 100644 (file)
@@ -7389,6 +7389,10 @@ ia64_in_small_data_p (exp)
   if (TARGET_NO_SDATA)
     return false;
 
+  /* 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));