aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/tm.texi
diff options
context:
space:
mode:
authorKazu Hirata <kazu@hxi.com>2001-08-12 23:34:50 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2001-08-12 23:34:50 +0000
commitf0d1c3bd39e6379bf2c1b53071c62baeabeb2174 (patch)
tree9e28714bc649bb7c7f0be266cd2f07717697a011 /gcc/doc/tm.texi
parentd9f6800d4a88a3cccd0653b7d415abcd5969c00e (diff)
downloadgcc-f0d1c3bd39e6379bf2c1b53071c62baeabeb2174.zip
gcc-f0d1c3bd39e6379bf2c1b53071c62baeabeb2174.tar.gz
gcc-f0d1c3bd39e6379bf2c1b53071c62baeabeb2174.tar.bz2
tm.texi (ENCODE_SECTION_INFO): Add documentation on how a tree representing a constant is passed to the macro.
* doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how a tree representing a constant is passed to the macro. From-SVN: r44836
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r--gcc/doc/tm.texi20
1 files changed, 12 insertions, 8 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 60fc2d3..caf0a02 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -5600,14 +5600,18 @@ This macro is irrelevant if there is no separate readonly data section.
@findex ENCODE_SECTION_INFO
@item ENCODE_SECTION_INFO (@var{decl})
-Define this macro if references to a symbol must be treated differently
-depending on something about the variable or function named by the
-symbol (such as what section it is in).
-
-The macro definition, if any, is executed immediately after the rtl for
-@var{decl} has been created and stored in @code{DECL_RTL (@var{decl})}.
-The value of the rtl will be a @code{mem} whose address is a
-@code{symbol_ref}.
+Define this macro if references to a symbol or a constant must be
+treated differently depending on something about the variable or
+function named by the symbol (such as what section it is in).
+
+The macro definition, if any, is executed under two circumstances. One
+is immediately after the rtl for @var{decl} that represents a variable
+or a function has been created and stored in @code{DECL_RTL
+(@var{decl})}. The value of the rtl will be a @code{mem} whose address
+is a @code{symbol_ref}. The other is immediately after the rtl for
+@var{decl} that represents a constant has been created and stored in
+@code{TREE_CST_RTL (@var{decl})}. The macro is called once for each
+distinct constant in a source file.
@cindex @code{SYMBOL_REF_FLAG}, in @code{ENCODE_SECTION_INFO}
The usual thing for this macro to do is to record a flag in the