Commit 14686fcd by Jeffrey A Law Committed by Jeff Law

tm.texi: Update docs for constructors and destructors.

        * tm.texi: Update docs for constructors and destructors.
And update comment in cp/decl2.c

From-SVN: r25356
parent b4bb92e5
......@@ -2,6 +2,7 @@ Sun Feb 21 20:35:10 1999 Jeffrey A Law (law@cygnus.com)
* config/aoutos.h (ASM_OUTPUT_CONSTRUCTOR): Delete.
(ASM_OUTPUT_DESTRUCTOR, ASM_OUTPUT_GC_ENTRY): Likewise.
* tm.texi: Update docs for constructors and destructors.
Sun Feb 21 17:11:18 1999 Richard Henderson <rth@cygnus.com>
......
......@@ -2938,7 +2938,8 @@ start_objects (method_type, initp)
NULL_TREE, 0);
#if defined(ASM_OUTPUT_CONSTRUCTOR) && defined(ASM_OUTPUT_DESTRUCTOR)
/* It can be a static function with .ctors/.dtors sections. */
/* It can be a static function as long as collect2 does not have
to scan the object file to find its ctor/dtor routine. */
TREE_PUBLIC (current_function_decl) = 0;
#endif
......
......@@ -5976,13 +5976,20 @@ names.
@findex ASM_OUTPUT_DESTRUCTOR
This is like @code{ASM_OUTPUT_CONSTRUCTOR} but used for termination
functions rather than initialization functions.
When @code{ASM_OUTPUT_CONSTRUCTOR} and @code{ASM_OUTPUT_DESTRUCTOR} are
defined, the initializaiton routine generated for the generated object
file will have static linkage.
@end table
If your system uses @code{collect2} as the means of processing
constructors, then that program normally uses @code{nm} to scan an
object file for constructor functions to be called. On certain kinds of
systems, you can define these macros to make @code{collect2} work faster
(and, in some cases, make it work at all):
object file for constructor functions to be called. On such systems you
must not define @code{ASM_OUTPUT_CONSTRUCTOR} and @code{ASM_OUTPUT_DESTRUCTOR}
as the object file's initialization routine must have global scope.
On certain kinds of systems, you can define these macros to make
@code{collect2} work faster (and, in some cases, make it work at all):
@table @code
@findex OBJECT_FORMAT_COFF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment