Commit 6f2f3db7 by Doug Evans

(named_section): Accept any decl.

From-SVN: r11945
parent a00285d0
...@@ -233,11 +233,13 @@ in_text_section () ...@@ -233,11 +233,13 @@ in_text_section ()
} }
/* Determine if we're in the data section. */ /* Determine if we're in the data section. */
int int
in_data_section () in_data_section ()
{ {
return in_section == in_data; return in_section == in_data;
} }
/* Tell assembler to change to section NAME for DECL. /* Tell assembler to change to section NAME for DECL.
If DECL is NULL, just switch to section NAME. If DECL is NULL, just switch to section NAME.
If NAME is NULL, get the name from DECL. */ If NAME is NULL, get the name from DECL. */
...@@ -248,7 +250,7 @@ named_section (decl, name) ...@@ -248,7 +250,7 @@ named_section (decl, name)
char *name; char *name;
{ {
if (decl != NULL_TREE if (decl != NULL_TREE
&& (TREE_CODE (decl) != FUNCTION_DECL && TREE_CODE (decl) != VAR_DECL)) && TREE_CODE_CLASS (TREE_CODE (decl)) != 'd')
abort (); abort ();
if (name == NULL) if (name == NULL)
name = TREE_STRING_POINTER (DECL_SECTION_NAME (decl)); name = TREE_STRING_POINTER (DECL_SECTION_NAME (decl));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment