OSDN Git Service

* config/frv/frv.c (frv_in_small_data_p): Return false for unknown
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Nov 2003 10:04:34 +0000 (10:04 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Nov 2003 10:04:34 +0000 (10:04 +0000)
section names.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73593 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/frv/frv.c

index c8a3c96..bed55eb 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
+       section names.
+
 2003-11-14  Jason Merrill  <jason@redhat.com>
 
        PR middle-end/12526
index 229fb3b..5b17a2d 100644 (file)
@@ -9784,10 +9784,6 @@ frv_in_small_data_p (decl)
   if (TREE_CODE (decl) != VAR_DECL || DECL_ARTIFICIAL (decl))
     return false;
 
-  size = int_size_in_bytes (TREE_TYPE (decl));
-  if (size > 0 && (unsigned HOST_WIDE_INT) size <= g_switch_value)
-    return true;
-
   /* If we already know which section the decl should be in, see if
      it's a small data section.  */
   section_name = DECL_SECTION_NAME (decl);
@@ -9799,8 +9795,13 @@ frv_in_small_data_p (decl)
        return true;
       if (frv_string_begins_with (section_name, ".sbss"))
        return true;
+      return false;
     }
 
+  size = int_size_in_bytes (TREE_TYPE (decl));
+  if (size > 0 && (unsigned HOST_WIDE_INT) size <= g_switch_value)
+    return true;
+
   return false;
 }
 \f