diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-13 13:32:57 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-13 13:32:57 +0000 |
commit | 6e71bd21bb8a410e95a8e675887030b0b8028b91 (patch) | |
tree | c27f9b1f6edf8bca3d95d41510094e498024b477 /gcc/target.def | |
parent | b3142b4e502168cc8e440c36a5488f8c4e763978 (diff) | |
download | gcc-6e71bd21bb8a410e95a8e675887030b0b8028b91.tar.gz |
* doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
* doc/tm.texi: Regenerate.
* target.def (mergeable_rodata_prefix: New defhookpod.
* varasm.c (mergeable_string_section, mergeable_constant_section):
Use it. Allocate name with alloca.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176235 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.def')
-rw-r--r-- | gcc/target.def | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/target.def b/gcc/target.def index 9f03ac922ac..3a0b413a80a 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -296,6 +296,15 @@ DEFHOOK section *, (tree decl), default_function_rodata_section) +/* Nonnull if the target wants to override the default ".rodata" prefix + for mergeable data sections. */ +DEFHOOKPOD +(mergeable_rodata_prefix, + "Usually, the compiler uses the prefix @code{\".rodata\"} to construct\n\ +section names for mergeable constant data. Define this macro to override\n\ +the string if a different section name should be used.", + const char *, ".rodata") + /* Output a constructor for a symbol with a given priority. */ DEFHOOK (constructor, |