aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.def
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-07-13 13:32:57 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2011-07-13 13:32:57 +0000
commit727a65e6fc07ea95309c875978c83c741359ad4e (patch)
treec27f9b1f6edf8bca3d95d41510094e498024b477 /gcc/target.def
parentcb77b6cf1f6f16014d71213cba699d76c87ac2ef (diff)
downloadgcc-727a65e6fc07ea95309c875978c83c741359ad4e.zip
gcc-727a65e6fc07ea95309c875978c83c741359ad4e.tar.gz
gcc-727a65e6fc07ea95309c875978c83c741359ad4e.tar.bz2
tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
* 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. From-SVN: r176235
Diffstat (limited to 'gcc/target.def')
-rw-r--r--gcc/target.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/target.def b/gcc/target.def
index 9f03ac9..3a0b413 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,