diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-01 23:29:55 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-01 23:29:55 +0000 |
commit | f4111c945c19b2ca01d5d23fbf81dbcf6fba7d3e (patch) | |
tree | 194c05431fa23bd64a67f9d0a7826dbb16f016c2 /gcc/output.h | |
parent | 52964258ce3d663d267b005bbf1b1ab28d56973f (diff) | |
download | gcc-f4111c945c19b2ca01d5d23fbf81dbcf6fba7d3e.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55957 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/output.h')
-rw-r--r-- | gcc/output.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gcc/output.h b/gcc/output.h index 53ed8109727..533af931e0f 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; |