From: Doug Evans Date: Mon, 6 May 1996 22:47:20 +0000 (+0000) Subject: (named_section): Accept any decl. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f2f3db7d08afa112dd04e3542c5b166573073a9;p=gcc.git (named_section): Accept any decl. From-SVN: r11945 --- diff --git a/gcc/varasm.c b/gcc/varasm.c index 468387c346b..cc103c4f679 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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));