diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-07-13 13:32:57 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2011-07-13 13:32:57 +0000 |
commit | 727a65e6fc07ea95309c875978c83c741359ad4e (patch) | |
tree | c27f9b1f6edf8bca3d95d41510094e498024b477 /gcc/doc | |
parent | cb77b6cf1f6f16014d71213cba699d76c87ac2ef (diff) | |
download | gcc-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/doc')
-rw-r--r-- | gcc/doc/tm.texi | 6 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index faf8b6c..08acb35 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -7050,6 +7050,12 @@ if function is in @code{.text.name}, and the normal readonly-data section otherwise. @end deftypefn +@deftypevr {Target Hook} {const char *} TARGET_ASM_MERGEABLE_RODATA_PREFIX +Usually, the compiler uses the prefix @code{".rodata"} to construct +section names for mergeable constant data. Define this macro to override +the string if a different section name should be used. +@end deftypevr + @deftypefn {Target Hook} {section *} TARGET_ASM_SELECT_RTX_SECTION (enum machine_mode @var{mode}, rtx @var{x}, unsigned HOST_WIDE_INT @var{align}) Return the section into which a constant @var{x}, of mode @var{mode}, should be placed. You can assume that @var{x} is some kind of diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index d823fae..7990c76 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -6984,6 +6984,8 @@ if function is in @code{.text.name}, and the normal readonly-data section otherwise. @end deftypefn +@hook TARGET_ASM_MERGEABLE_RODATA_PREFIX + @hook TARGET_ASM_SELECT_RTX_SECTION Return the section into which a constant @var{x}, of mode @var{mode}, should be placed. You can assume that @var{x} is some kind of |