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]

Re: A little bit of additional flexibility in crtstuff.c


On Aug 25, 2000, Jason Merrill <jason@redhat.com> wrote:

> OK, makes sense.  Add a bit of that explanation to the macro docs and check
> it in.

Here's what I'm checking in.  Please let me know if something is too
obscure or not well written.

Index: gcc/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
	Document.

Index: gcc/tm.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/tm.texi,v
retrieving revision 1.141
diff -u -p -r1.141 tm.texi
--- gcc/tm.texi	2000/08/25 16:52:23	1.141
+++ gcc/tm.texi	2000/08/26 22:16:28
@@ -5075,6 +5075,23 @@ assembler operation to identify the foll
 code.  If not defined, GCC will assume such a section does not
 exist.
 
+@findex FINI_SECTION_ASM_OP
+@item FINI_SECTION_ASM_OP
+If defined, a C expression whose value is a string containing the
+assembler opration to identify the following data as finalization
+code.  If not defined, GCC will assume such a section does not exist.
+
+@findex CRT_CALL_STATIC_FUNCTION
+@item CRT_CALL_STATIC_FUNCTION
+If defined, a C statement that calls the function named as the sole
+argument of this macro.  This is used in @file{crtstuff.c} if
+@code{INIT_SECTION_ASM_OP} or @code{FINI_SECTION_ASM_OP} to calls to
+initialization and finalization functions from the init and fini
+sections. By default, this macro is a simple function call.  Some
+ports need hand-crafted assembly code to avoid dependencies on
+registers initialized in the function prologue or to ensure that
+constant pools don't end up too far way in the text section.
+
 @findex EXTRA_SECTIONS
 @findex in_text
 @findex in_data

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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