config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 23 18:41:59 2010 +0100 (2010-01-23)
changeset 1748 54bbdbf316f3
parent 1611 e2516bba8fe5
child 1752 2a0656d9c905
permissions -rw-r--r--
libc/uclibc: use CT_ARCH, in place of CT_KERNEL_ARCH

Since we merged the 32/64-bit archs, and we explicitly used
the Linux kernel arch name, we can get rid of CT_KERNEL_ARCH.
     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 # Don't remove next line
    20 # CT_INSERT_VERSION_BELOW
    21 
    22 config CC_V_4_4_2
    23     bool
    24     prompt "4.4.2 (EXPERIMENTAL)"
    25     depends on EXPERIMENTAL
    26     select CC_GCC_4_3_or_later
    27     select CC_GCC_4_4_or_later
    28 
    29 config CC_V_4_4_1
    30     bool
    31     prompt "4.4.1 (EXPERIMENTAL)"
    32     depends on EXPERIMENTAL
    33     select CC_GCC_4_3_or_later
    34     select CC_GCC_4_4_or_later
    35 
    36 config CC_V_4_4_0
    37     bool
    38     prompt "4.4.0 (EXPERIMENTAL)"
    39     depends on EXPERIMENTAL
    40     select CC_GCC_4_3_or_later
    41     select CC_GCC_4_4_or_later
    42 
    43 config CC_V_4_3_4
    44     bool
    45     prompt "4.3.4"
    46     select CC_GCC_4_3_or_later
    47 
    48 config CC_V_4_3_3
    49     bool
    50     prompt "4.3.3"
    51     select CC_GCC_4_3_or_later
    52 
    53 config CC_V_4_3_2
    54     bool
    55     prompt "4.3.2"
    56     select CC_GCC_4_3_or_later
    57 
    58 config CC_V_4_3_1
    59     bool
    60     prompt "4.3.1"
    61     select CC_GCC_4_3_or_later
    62 
    63 config CC_V_4_3_0
    64     bool
    65     prompt "4.3.0 (EXPERIMENTAL)"
    66     depends on EXPERIMENTAL
    67     select CC_GCC_4_3_or_later
    68 
    69 config CC_V_4_2_4
    70     bool
    71     prompt "4.2.4"
    72 
    73 config CC_V_4_2_3
    74     bool
    75     prompt "4.2.3 (OBSOLETE)"
    76     depends on OBSOLETE
    77 
    78 config CC_V_4_2_2
    79     bool
    80     prompt "4.2.2"
    81 
    82 config CC_V_4_2_1
    83     bool
    84     prompt "4.2.1 (OBSOLETE)"
    85     depends on OBSOLETE
    86 
    87 config CC_V_4_2_0
    88     bool
    89     prompt "4.2.0 (OBSOLETE)"
    90     depends on OBSOLETE
    91 
    92 config CC_V_4_1_2
    93     bool
    94     prompt "4.1.2 (OBSOLETE)"
    95     depends on OBSOLETE
    96 
    97 config CC_V_4_0_4
    98     bool
    99     prompt "4.0.4 (OBSOLETE)"
   100     depends on OBSOLETE
   101 
   102 config CC_V_3_4_6
   103     bool
   104     prompt "3.4.6 (OBSOLETE)"
   105     depends on OBSOLETE
   106 
   107 endchoice
   108 
   109 config CC_GCC_4_3_or_later
   110     bool
   111     default n
   112     select GMP_MPFR
   113 
   114 config CC_GCC_4_4_or_later
   115     bool
   116     default n
   117     select PPL_CLOOG_MPC
   118 
   119 config CC_VERSION
   120     string
   121 # Don't remove next line
   122 # CT_INSERT_VERSION_STRING_BELOW
   123     default "4.4.2" if CC_V_4_4_2
   124     default "4.4.1" if CC_V_4_4_1
   125     default "4.4.0" if CC_V_4_4_0
   126     default "4.3.4" if CC_V_4_3_4
   127     default "4.3.3" if CC_V_4_3_3
   128     default "4.3.2" if CC_V_4_3_2
   129     default "4.3.1" if CC_V_4_3_1
   130     default "4.3.0" if CC_V_4_3_0
   131     default "4.2.4" if CC_V_4_2_4
   132     default "4.2.3" if CC_V_4_2_3
   133     default "4.2.2" if CC_V_4_2_2
   134     default "4.2.1" if CC_V_4_2_1
   135     default "4.2.0" if CC_V_4_2_0
   136     default "4.1.2" if CC_V_4_1_2
   137     default "4.0.4" if CC_V_4_0_4
   138     default "3.4.6" if CC_V_3_4_6
   139 
   140 config CC_CXA_ATEXIT
   141     bool
   142     prompt "Use __cxa_atexit"
   143     default y
   144     depends on ! BARE_METAL
   145     help
   146       If you get the missing symbol "__cxa_atexit" when building C++ programs,
   147       you might want to try disabling this option.
   148 
   149 choice
   150     bool
   151     prompt "Use sjlj for exceptions"
   152     default CC_SJLJ_EXCEPTIONS_CONFIGURE
   153     depends on ! BARE_METAL
   154 
   155 # This config option is used nowhere in the code on purpose.
   156 # It only serves as a choice entry to force neither using nor not using sjlj
   157 config CC_SJLJ_EXCEPTIONS_CONFIGURE
   158     bool
   159     prompt "Let configure decide"
   160     help
   161       Let configure decide if setjmp/longjmp should be used to handle
   162       exceptions.
   163       
   164       Choose that if you trust configure to detect the correct settings.
   165       This is the default choice.
   166 
   167 config CC_SJLJ_EXCEPTIONS_USE
   168     bool
   169     prompt "Force using sjlj"
   170     help
   171       Do use setjmp/longjmp for exceptions.
   172       This is gcc's --enable-sjlj-exceptions configure switch.
   173       
   174       Choose that if you want to use setjmp/longjmp to handle exceptions.
   175 
   176 config CC_SJLJ_EXCEPTIONS_DONT_USE
   177     bool
   178     prompt "Force not using sjlj"
   179     help
   180       Do not use setjmp/longjmp for exceptions.
   181       This is gcc's --disable-sjlj-exceptions configure switch.
   182       
   183       Choose that if you want to not use setjmp/longjmp to handle exceptions.
   184 
   185 endchoice
   186 
   187 config CC_ENABLE_CXX_FLAGS
   188     string
   189     prompt "Flags to pass to --enable-cxx-flags"
   190     default ""
   191     help
   192       Enter here the value of the gcc's ./configure option --enable-cxx-flags.
   193       Leave empty if you don't know better.
   194       
   195       Note: just pass in the option _value_, that is only the part that goes
   196       after the '=' sign.
   197 
   198 config CC_CORE_EXTRA_CONFIG
   199     string
   200     prompt "Core gcc extra config"
   201     default ""
   202     help
   203       Extra flags to pass onto ./configure when configuring the core gcc.
   204       
   205       The core gcc is a stripped down, C-only compiler needed to build
   206       the C library. Kinda bootstrap gcc, if you wish.
   207 
   208 config CC_EXTRA_CONFIG
   209     string
   210     prompt "gcc extra config"
   211     default ""
   212     depends on ! BARE_METAL
   213     help
   214       Extra flags to pass onto ./configure when configuring gcc.
   215 
   216 config CC_PKGVERSION
   217     string
   218     prompt "gcc ID string"
   219     depends on CC_GCC_4_3_or_later
   220     default "crosstool-NG-${CT_VERSION}"
   221     help
   222       Specify a string that identifies your package. You may wish to include
   223       a build number or build date. This version string will be included in
   224       the output of gcc --version.
   225 
   226       This is passed to the configure flag --with-pkgversion.
   227 
   228 config CC_BUGURL
   229     string
   230     prompt "gcc bug URL"
   231     depends on CC_GCC_4_3_or_later
   232     default ""
   233     help
   234       Specify the URL that users should visit if they wish to report a bug.
   235 
   236 config CC_LANG_JAVA_USE_ECJ
   237     bool
   238     default y
   239     depends on CC_LANG_JAVA
   240     depends on CC_GCC_4_3_or_later