config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Oct 12 10:38:02 2008 +0000 (2008-10-12)
changeset 918 819bb22347d4
parent 874 4c2030673163
child 923 54fc137f9dc8
permissions -rw-r--r--
Update the auto-completion function:
- be silent in case of errors
- also suggest 'build.'

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