aboutsummaryrefslogtreecommitdiff
path: root/gcc/output.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gnu.org>2002-08-01 23:29:55 +0000
committerRichard Henderson <rth@gcc.gnu.org>2002-08-01 16:29:55 -0700
commit4e4d733e19a420252f401c7e5a469abda6a48998 (patch)
tree194c05431fa23bd64a67f9d0a7826dbb16f016c2 /gcc/output.h
parent32e9b9606f88e84fc2ffe07a094ed70b60633693 (diff)
downloadgcc-4e4d733e19a420252f401c7e5a469abda6a48998.zip
gcc-4e4d733e19a420252f401c7e5a469abda6a48998.tar.gz
gcc-4e4d733e19a420252f401c7e5a469abda6a48998.tar.bz2
output.h (DECL_READONLY_SECTION): Remove.
* output.h (DECL_READONLY_SECTION): Remove. (decl_readonly_section): Declare. * varasm.c (decl_readonly_section): New. (default_section_type_flags, default_select_section): Use it. * config/arm/pe.c (arm_pe_unique_section): Likewise. * config/i386/interix.c (i386_pe_unique_section): Likewise. * config/i386/winnt.c (i386_pe_unique_section): Likewise. * config/mcore/mcore.c (mcore_unique_section): Likewise. * config/mips/mips.c (mips_unique_section): Likewise. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r55957
Diffstat (limited to 'gcc/output.h')
-rw-r--r--gcc/output.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/gcc/output.h b/gcc/output.h
index 53ed810..533af93 100644
--- a/gcc/output.h
+++ b/gcc/output.h
@@ -468,16 +468,9 @@ extern struct rtx_def *current_output_insn;
The precise value is the insn being output, to pass to error_for_asm. */
extern rtx this_is_asm_operands;
-/* Decide whether DECL needs to be in a writable section. RELOC is the same
- as for SELECT_SECTION. */
-
-#define DECL_READONLY_SECTION(DECL,RELOC) \
- (TREE_READONLY (DECL) \
- && ! TREE_THIS_VOLATILE (DECL) \
- && DECL_INITIAL (DECL) \
- && (DECL_INITIAL (DECL) == error_mark_node \
- || TREE_CONSTANT (DECL_INITIAL (DECL))) \
- && ! (RELOC && (flag_pic || DECL_ONE_ONLY (DECL))))
+/* Decide whether DECL needs to be in a writable section.
+ RELOC is the same as for SELECT_SECTION. */
+extern bool decl_readonly_section PARAMS ((tree, int));
/* User label prefix in effect for this compilation. */
extern const char *user_label_prefix;