config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 06 22:10:17 2009 +0000 (2009-01-06)
changeset 1129 cf598d70f6ea
parent 1121 4b7ed9da5a21
child 1162 31348b787bed
permissions -rw-r--r--
Add the Eclipse Java Compiler to be able to compile Java.
Andy JOHNSON wrote:
The Java compiler for GCC versions 4.3.0 and up requires the
Eclipse compiler "ecj1" to be built as well. I added "gcj" to
the list of utilities to make the initial link.


/trunk/scripts/build/cc/gcc.sh | 12 12 0 0 ++++++++++++
/trunk/scripts/crosstool.sh | 2 1 1 0 +-
/trunk/config/cc/gcc.in | 6 6 0 0 ++++++
3 files changed, 19 insertions(+), 1 deletion(-)
     1 # Compiler options
     2 
     3 config CC_gcc
     4     select CC_SUPPORT_CXX
     5     select CC_SUPPORT_FORTRAN
     6     select CC_SUPPORT_JAVA
     7     select CC_SUPPORT_ADA
     8     select CC_SUPPORT_OBJC
     9     select CC_SUPPORT_OBJCXX
    10     help
    11       gcc is the full-blown GNU compiler. This is what most people will choose.
    12       
    13       gcc supports many languages, a powerful code parser, optimised binary
    14       output, and lots of other features.
    15 
    16 choice
    17     bool
    18     prompt "gcc version"
    19 
    20 config CC_V_3_2_3
    21     bool
    22     prompt "3.2.3 (OBSOLETE)"
    23     depends on OBSOLETE
    24 
    25 config CC_V_3_3_6
    26     bool
    27     prompt "3.3.6 (OBSOLETE)"
    28     depends on OBSOLETE
    29 
    30 config CC_V_3_4_6
    31     bool
    32     prompt "3.4.6 (OBSOLETE)"
    33     depends on OBSOLETE
    34 
    35 config CC_V_4_0_0
    36     bool
    37     prompt "4.0.0 (OBSOLETE)"
    38     depends on OBSOLETE
    39 
    40 config CC_V_4_0_1
    41     bool
    42     prompt "4.0.1 (OBSOLETE)"
    43     depends on OBSOLETE
    44 
    45 config CC_V_4_0_2
    46     bool
    47     prompt "4.0.2 (OBSOLETE)"
    48     depends on OBSOLETE
    49 
    50 config CC_V_4_0_3
    51     bool
    52     prompt "4.0.3 (OBSOLETE)"
    53     depends on OBSOLETE
    54 
    55 config CC_V_4_0_4
    56     bool
    57     prompt "4.0.4"
    58 
    59 config CC_V_4_1_0
    60     bool
    61     prompt "4.1.0 (OBSOLETE)"
    62     depends on OBSOLETE
    63 
    64 config CC_V_4_1_1
    65     bool
    66     prompt "4.1.1 (OBSOLETE)"
    67     depends on OBSOLETE
    68 
    69 config CC_V_4_1_2
    70     bool
    71     prompt "4.1.2"
    72 
    73 config CC_V_4_2_0
    74     bool
    75     prompt "4.2.0"
    76 
    77 config CC_V_4_2_1
    78     bool
    79     prompt "4.2.1"
    80 
    81 config CC_V_4_2_2
    82     bool
    83     prompt "4.2.2"
    84 
    85 config CC_V_4_2_3
    86     bool
    87     prompt "4.2.3"
    88 
    89 config CC_V_4_2_4
    90     bool
    91     prompt "4.2.4"
    92 
    93 config CC_V_4_3_0
    94     bool
    95     prompt "4.3.0 (EXPERIMENTAL)"
    96     depends on EXPERIMENTAL
    97     select CC_GCC_4_3_or_later
    98 
    99 config CC_V_4_3_1
   100     bool
   101     prompt "4.3.1"
   102     select CC_GCC_4_3_or_later
   103 
   104 config CC_V_4_3_2
   105     bool
   106     prompt "4.3.2"
   107     select CC_GCC_4_3_or_later
   108 
   109 # CT_INSERT_VERSION_ABOVE
   110 # Don't remove above line!
   111 endchoice
   112 
   113 config CC_VERSION
   114     string
   115     default "3.2.3" if CC_V_3_2_3
   116     default "3.3.6" if CC_V_3_3_6
   117     default "3.4.6" if CC_V_3_4_6
   118     default "4.0.0" if CC_V_4_0_0
   119     default "4.0.1" if CC_V_4_0_1
   120     default "4.0.2" if CC_V_4_0_2
   121     default "4.0.3" if CC_V_4_0_3
   122     default "4.0.4" if CC_V_4_0_4
   123     default "4.1.0" if CC_V_4_1_0
   124     default "4.1.1" if CC_V_4_1_1
   125     default "4.1.2" if CC_V_4_1_2
   126     default "4.2.0" if CC_V_4_2_0
   127     default "4.2.1" if CC_V_4_2_1
   128     default "4.2.2" if CC_V_4_2_2
   129     default "4.2.3" if CC_V_4_2_3
   130     default "4.2.4" if CC_V_4_2_4
   131     default "4.3.0" if CC_V_4_3_0
   132     default "4.3.1" if CC_V_4_3_1
   133     default "4.3.2" if CC_V_4_3_2
   134 # CT_INSERT_VERSION_STRING_ABOVE
   135 # Don't remove above line!
   136 
   137 config CC_GCC_4_3_or_later
   138     bool
   139     default n
   140     select GMP_MPFR
   141 
   142 config CC_CXA_ATEXIT
   143     bool
   144     prompt "Use __cxa_atexit"
   145     default y
   146     depends on ! BARE_METAL
   147     help
   148       If you get the missing symbol "__cxa_atexit" when building C++ programs,
   149       you might want to try disabling this option.
   150 
   151 choice
   152     bool
   153     prompt "Use sjlj for exceptions"
   154     default CC_SJLJ_EXCEPTIONS_CONFIGURE
   155     depends on ! BARE_METAL
   156 
   157 # This config option is used nowhere in the code on purpose.
   158 # It only serves as a choice entry to force neither using nor not using sjlj
   159 config CC_SJLJ_EXCEPTIONS_CONFIGURE
   160     bool
   161     prompt "Let configure decide"
   162     help
   163       Let configure decide if setjmp/longjmp should be used to handle
   164       exceptions.
   165       
   166       Choose that if you trust configure to detect the correct settings.
   167       This is the default choice.
   168 
   169 config CC_SJLJ_EXCEPTIONS_USE
   170     bool
   171     prompt "Force using sjlj"
   172     help
   173       Do use setjmp/longjmp for exceptions.
   174       This is gcc's --enable-sjlj-exceptions configure switch.
   175       
   176       Choose that if you want to use setjmp/longjmp to handle exceptions.
   177 
   178 config CC_SJLJ_EXCEPTIONS_DONT_USE
   179     bool
   180     prompt "Force not using sjlj"
   181     help
   182       Do not use setjmp/longjmp for exceptions.
   183       This is gcc's --disable-sjlj-exceptions configure switch.
   184       
   185       Choose that if you want to not use setjmp/longjmp to handle exceptions.
   186 
   187 endchoice
   188 
   189 config CC_CORE_EXTRA_CONFIG
   190     string
   191     prompt "Core gcc extra config"
   192     default ""
   193     help
   194       Extra flags to pass onto ./configure when configuring the core gcc.
   195       
   196       The core gcc is a stripped down, C-only compiler needed to build
   197       the C library. Kinda bootstrap gcc, if you wish.
   198 
   199 config CC_EXTRA_CONFIG
   200     string
   201     prompt "gcc extra config"
   202     default ""
   203     depends on ! BARE_METAL
   204     help
   205       Extra flags to pass onto ./configure when configuring gcc.
   206 
   207 config CC_PKGVERSION
   208     string
   209     prompt "gcc ID string"
   210     depends on CC_GCC_4_3_or_later
   211     default "crosstool-NG-${CT_VERSION}"
   212     help
   213       Specify a string that identifies your package. You may wish to include
   214       a build number or build date. This version string will be included in
   215       the output of gcc --version.
   216 
   217       This is passed to the configure flag --with-pkgversion.
   218 
   219 config CC_BUGURL
   220     string
   221     prompt "gcc bug URL"
   222     depends on CC_GCC_4_3_or_later
   223     default ""
   224     help
   225       Specify the URL that users should visit if they wish to report a bug.
   226 
   227 config CC_LANG_JAVA_USE_ECJ
   228     bool
   229     default y
   230     depends on CC_LANG_JAVA
   231     depends on CC_GCC_4_3_or_later