This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Update ENCODE_SECTION_INFO documentation. (Was Re: [patch] h8300.h: Fix an ICE from tree checking. )


Hi,

Attached is a patch to add documentation on how a tree representing a
constant is passed to ENCODE_SECTION_INFO.  OK to apply?

Thanks,

p.s.
This message is the same as 

http://gcc.gnu.org/ml/gcc-patches/2001-08/msg00453.html

I changed the subject for better attention.

Kazu Hirata

2001-08-12  Kazu Hirata  <kazu@hxi.com>

	* tm.texi (ENCODE_SECTION_INFO): Add documentation on how a
	tree representing a constant is passed to the macro.

Index: tm.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/tm.texi,v
retrieving revision 1.43
diff -c -r1.43 tm.texi
*** tm.texi	2001/08/06 16:38:18	1.43
--- tm.texi	2001/08/09 03:05:26
***************
*** 5599,5612 ****
  
  @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}.
  
  @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
--- 5599,5616 ----
  
  @findex ENCODE_SECTION_INFO
  @item ENCODE_SECTION_INFO (@var{decl})
! 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]