diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-10-31 05:53:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-10-31 05:53:31 +0000 |
| commit | da1988477d9de7be10e3c2c0ddf79a07ad59f1ab (patch) | |
| tree | 72564796f40f0e239fb09d2a2e962d2352034a1e /llvm/docs | |
| parent | 5087e267c259b564cd2ce93e43aacaa07083dec0 (diff) | |
| download | bcm5719-llvm-da1988477d9de7be10e3c2c0ddf79a07ad59f1ab.tar.gz bcm5719-llvm-da1988477d9de7be10e3c2c0ddf79a07ad59f1ab.zip | |
__main is dead along with llvm-gcc3.
llvm-svn: 43545
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/FAQ.html | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/docs/FAQ.html b/llvm/docs/FAQ.html index 58230414172..ea2f802d1dd 100644 --- a/llvm/docs/FAQ.html +++ b/llvm/docs/FAQ.html @@ -89,8 +89,6 @@ <li><a href="#cfe_code">Questions about code generated by the GCC front-end</a> <ol> - <li><a href="#__main">What is this <tt>__main()</tt> call that gets inserted into - <tt>main()</tt>?</a></li> <li><a href="#iosinit">What is this <tt>llvm.global_ctors</tt> and <tt>_GLOBAL__I__tmp_webcompile...</tt> stuff that happens when I #include <iostream>?</a></li> @@ -591,29 +589,6 @@ them.</p> <a name="cfe_code">Questions about code generated by the GCC front-end</a> </div> -<div class="question"><p> -<a name="__main"></a> -What is this <tt>__main()</tt> call that gets inserted into <tt>main()</tt>? -</p></div> - -<div class="answer"> -<p> -The <tt>__main</tt> call is inserted by the C/C++ compiler in order to guarantee -that static constructors and destructors are called when the program starts up -and shuts down. In C, you can create static constructors and destructors by -using GCC extensions, and in C++ you can do so by creating a global variable -whose class has a ctor or dtor. -</p> - -<p> -The actual implementation of <tt>__main</tt> lives in the -<tt>llvm/runtime/GCCLibraries/crtend/</tt> directory in the source-base, and is -linked in automatically when you link the program. -</p> -</div> - -<!--=========================================================================--> - <div class="question"> <a name="iosinit"></a> <p> What is this <tt>llvm.global_ctors</tt> and |

