diff options
author | Doug Evans <dje@gnu.org> | 1996-05-06 22:47:20 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1996-05-06 22:47:20 +0000 |
commit | 6f2f3db7d08afa112dd04e3542c5b166573073a9 (patch) | |
tree | 1709502dfff5e4867ea95b842b75fc1f32336dcf /gcc | |
parent | a00285d03514d4c4b2e627a1d4cb453afcdf3d43 (diff) | |
download | gcc-6f2f3db7d08afa112dd04e3542c5b166573073a9.zip gcc-6f2f3db7d08afa112dd04e3542c5b166573073a9.tar.gz gcc-6f2f3db7d08afa112dd04e3542c5b166573073a9.tar.bz2 |
(named_section): Accept any decl.
From-SVN: r11945
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/varasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 468387c..cc103c4 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)); |