From a631a87ce1d390c87c542f8cf7d2c224b60221fb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 31 Oct 2007 05:53:31 +0000 Subject: [PATCH] __main is dead along with llvm-gcc3. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43545 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/FAQ.html | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/docs/FAQ.html b/docs/FAQ.html index 58230414172..ea2f802d1dd 100644 --- a/docs/FAQ.html +++ b/docs/FAQ.html @@ -89,8 +89,6 @@
  • Questions about code generated by the GCC front-end
      -
    1. What is this __main() call that gets inserted into - main()?
    2. What is this llvm.global_ctors and _GLOBAL__I__tmp_webcompile... stuff that happens when I #include <iostream>?
    3. @@ -591,29 +589,6 @@ them.

      Questions about code generated by the GCC front-end -

      - -What is this __main() call that gets inserted into main()? -

      - -
      -

      -The __main 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. -

      - -

      -The actual implementation of __main lives in the -llvm/runtime/GCCLibraries/crtend/ directory in the source-base, and is -linked in automatically when you link the program. -

      -
      - - -

      What is this llvm.global_ctors and -- 2.34.1