aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2004-10-27 21:17:08 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2004-10-27 21:17:08 +0000
commit09afda707e1b5869628246ce0d3df14b0007195a (patch)
tree47c1a5d2272cf52f4c822c59133a9ddcffc4935a /gcc
parent72747d40e9b84c8a063d0ee0f1356a04d5e8b941 (diff)
downloadgcc-09afda707e1b5869628246ce0d3df14b0007195a.zip
gcc-09afda707e1b5869628246ce0d3df14b0007195a.tar.gz
gcc-09afda707e1b5869628246ce0d3df14b0007195a.tar.bz2
* doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
From-SVN: r89713
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/doc/tm.texi11
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2bc4a62..8713310 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2004-10-27 Geoffrey Keating <geoffk@apple.com>
+ * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
+
* config/darwin.h (GTHREAD_USE_WEAK): Define.
2004-10-28 Ben Elliston <bje@au.ibm.com>
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 061df95..76634af2 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -5980,8 +5980,19 @@ in bits.
The default version of this function takes care of putting read-only
variables in @code{readonly_data_section}.
+
+See also @var{USE_SELECT_SECTION_FOR_FUNCTIONS}.
@end deftypefn
+@defmac USE_SELECT_SECTION_FOR_FUNCTIONS
+Define this macro if you wish TARGET_ASM_SELECT_SECTION to be called
+for @code{FUNCTION_DECL}s as well as for variables and constants.
+
+In the case of a @code{FUNCTION_DECL}, @var{reloc} will be zero if the
+function has been determined to be likely to be called, and nonzero if
+it is unlikely to be called.
+@end defmac
+
@deftypefn {Target Hook} void TARGET_ASM_UNIQUE_SECTION (tree @var{decl}, int @var{reloc})
Build up a unique section name, expressed as a @code{STRING_CST} node,
and assign it to @samp{DECL_SECTION_NAME (@var{decl})}.