(named_section): Accept any decl.
authorDoug Evans <dje@gnu.org>
Mon, 6 May 1996 22:47:20 +0000 (22:47 +0000)
committerDoug Evans <dje@gnu.org>
Mon, 6 May 1996 22:47:20 +0000 (22:47 +0000)
From-SVN: r11945

gcc/varasm.c

index 468387c346bd76f507d0064307f7eea4c13ce66b..cc103c4f679ea6ca9eabb870795fd08c8c7a6ebc 100644 (file)
@@ -233,11 +233,13 @@ in_text_section ()
 }
 
 /* Determine if we're in the data section. */
+
 int
 in_data_section ()
 {
   return in_section == in_data;
 }
+
 /* Tell assembler to change to section NAME for DECL.
    If DECL is NULL, just switch to section NAME.
    If NAME is NULL, get the name from DECL.  */
@@ -248,7 +250,7 @@ named_section (decl, name)
      char *name;
 {
   if (decl != NULL_TREE
-      && (TREE_CODE (decl) != FUNCTION_DECL && TREE_CODE (decl) != VAR_DECL))
+      && TREE_CODE_CLASS (TREE_CODE (decl)) != 'd')
     abort ();
   if (name == NULL)
     name = TREE_STRING_POINTER (DECL_SECTION_NAME (decl));