From 6f2f3db7d08afa112dd04e3542c5b166573073a9 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 6 May 1996 22:47:20 +0000 Subject: [PATCH] (named_section): Accept any decl. From-SVN: r11945 --- gcc/varasm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); -- 2.30.2