diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-04 18:11:18 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-04 18:11:18 +0000 |
commit | 9292e3beadaf327aa9e5538e27943aa2d8079805 (patch) | |
tree | 14249a66a863f3cb90c2a01b57d8301ed45902dc /gcc/target.h | |
parent | 2a075f9106966bce1915c515f729182a987cf0ce (diff) | |
download | gcc-9292e3beadaf327aa9e5538e27943aa2d8079805.tar.gz |
* target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
* target.h (gcc_target): Add have_srodata_section member.
* varasm.c (section_category): Add SECCAT_SRODATA.
(categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
READONLY_SDATA_SECTION defined.
(decl_readonly_section_1): True for SECCAT_SRODATA also.
(default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
(default_unique_section_1): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56806 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.h')
-rw-r--r-- | gcc/target.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h index b63fc0f59c8..6bb1bb0aa64 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -262,6 +262,9 @@ struct gcc_target /* True if thread-local storage is supported. */ bool have_tls; + + /* True if a small readonly data section is supported. */ + bool have_srodata_section; }; extern struct gcc_target targetm; |