2011-04-27 20:41:17 +00:00
|
|
|
# gcc configuration options
|
2010-10-08 21:53:41 +00:00
|
|
|
|
2011-04-27 20:41:17 +00:00
|
|
|
config CC_ENABLE_CXX_FLAGS
|
|
|
|
string
|
|
|
|
prompt "Flags to pass to --enable-cxx-flags"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Enter here the value of the gcc's ./configure option --enable-cxx-flags.
|
|
|
|
Leave empty if you don't know better.
|
|
|
|
|
|
|
|
Note: just pass in the option _value_, that is only the part that goes
|
|
|
|
after the '=' sign.
|
|
|
|
|
2011-05-18 21:00:46 +00:00
|
|
|
config CC_CORE_EXTRA_CONFIG_ARRAY
|
2011-04-27 20:41:17 +00:00
|
|
|
string
|
|
|
|
prompt "Core gcc extra config"
|
|
|
|
default ""
|
2014-05-10 02:13:49 +00:00
|
|
|
depends on CC_CORE_PASS_1_NEEDED || CC_CORE_PASS_2_NEEDED
|
2011-04-27 20:41:17 +00:00
|
|
|
help
|
|
|
|
Extra flags to pass onto ./configure when configuring the core gcc.
|
|
|
|
|
|
|
|
The core gcc is a stripped down, C-only compiler needed to build
|
|
|
|
the C library. Kinda bootstrap gcc, if you wish.
|
2011-05-18 21:42:57 +00:00
|
|
|
|
|
|
|
You can enter multiple arguments here, and arguments can contain spaces
|
|
|
|
if they are properly quoted (or escaped, but prefer quotes). Eg.:
|
|
|
|
--with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
|
2011-04-27 20:41:17 +00:00
|
|
|
|
2011-05-18 21:00:46 +00:00
|
|
|
config CC_EXTRA_CONFIG_ARRAY
|
2011-04-27 20:41:17 +00:00
|
|
|
string
|
|
|
|
prompt "gcc extra config"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Extra flags to pass onto ./configure when configuring gcc.
|
2011-05-18 21:42:57 +00:00
|
|
|
|
|
|
|
You can enter multiple arguments here, and arguments can contain spaces
|
|
|
|
if they are properly quoted (or escaped, but prefer quotes). Eg.:
|
|
|
|
--with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
|
2011-04-27 20:41:17 +00:00
|
|
|
|
|
|
|
config STATIC_TOOLCHAIN
|
|
|
|
select CC_STATIC_LIBSTDCXX if CC_GCC_4_4_or_later
|
|
|
|
|
|
|
|
config CC_STATIC_LIBSTDCXX
|
2010-07-28 19:28:54 +00:00
|
|
|
bool
|
2011-04-27 20:41:17 +00:00
|
|
|
prompt "Link libstdc++ statically into the gcc binary"
|
2010-07-28 19:28:54 +00:00
|
|
|
default y
|
2011-04-27 20:41:17 +00:00
|
|
|
depends on CC_GCC_4_4_or_later
|
2011-10-14 20:44:24 +00:00
|
|
|
select WANTS_STATIC_LINK
|
2010-07-28 19:28:54 +00:00
|
|
|
help
|
2011-04-27 20:41:17 +00:00
|
|
|
Newer gcc versions use the PPL library which is C++ code. Statically
|
|
|
|
linking libstdc++ increases the likeliness that the gcc binary will
|
|
|
|
run on machines other than the one which it was built on, without
|
|
|
|
having to worry about distributing the matching version of libstdc++
|
|
|
|
along with it.
|
|
|
|
|
2011-12-31 15:23:27 +00:00
|
|
|
config CC_GCC_SYSTEM_ZLIB
|
|
|
|
bool
|
|
|
|
prompt "Use system zlib"
|
|
|
|
help
|
|
|
|
Do not use bundled zlib, and use the zlib already available for
|
|
|
|
the host (eg. the system library).
|
|
|
|
|
|
|
|
If you want to build a static toolchain, you will need to also
|
|
|
|
install the static version of zlib for your host.
|
|
|
|
|
|
|
|
If unsure, say 'n'.
|
|
|
|
|
2011-04-27 20:41:17 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Optimisation features
|
|
|
|
|
|
|
|
comment "Optimisation features"
|
2010-07-28 19:28:54 +00:00
|
|
|
|
2013-05-05 15:59:00 +00:00
|
|
|
# Defined in config/cc/gcc.in
|
2010-09-12 18:54:54 +00:00
|
|
|
config CC_GCC_USE_GRAPHITE
|
|
|
|
prompt "Enable GRAPHITE loop optimisations"
|
|
|
|
|
2011-01-28 17:53:37 +00:00
|
|
|
# The way LTO works is a bit twisted.
|
|
|
|
# See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
|
|
|
|
# Basically:
|
|
|
|
# - if binutils has plugins: LTO is handled by ld/gold by loading
|
|
|
|
# the plugin when linking
|
|
|
|
# - if binutils does not have plugins: LTO is handled by collect2
|
|
|
|
# In any case, LTO support does not depend on plugins, but takes
|
|
|
|
# advantage of it
|
2011-03-19 15:01:40 +00:00
|
|
|
# Also, only the 4.5 series needs libelf for LTO; 4.6 has dropped
|
|
|
|
# the dependency.
|
2013-05-05 15:59:00 +00:00
|
|
|
# Defined in config/cc/gcc.in
|
2010-09-12 18:54:54 +00:00
|
|
|
config CC_GCC_USE_LTO
|
|
|
|
prompt "Enable LTO"
|
|
|
|
|
2011-04-27 20:41:17 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
comment "Settings for libraries running on target"
|
2010-12-09 17:55:42 +00:00
|
|
|
|
2011-04-27 20:41:17 +00:00
|
|
|
config CC_GCC_ENABLE_TARGET_OPTSPACE
|
2010-07-29 17:47:16 +00:00
|
|
|
bool
|
2011-04-27 20:41:17 +00:00
|
|
|
prompt "Optimize gcc libs for size"
|
2010-07-29 17:47:16 +00:00
|
|
|
default y
|
|
|
|
help
|
2011-04-27 20:41:17 +00:00
|
|
|
Pass --enable-target-optspace to crossgcc's configure.
|
|
|
|
|
|
|
|
This will compile crossgcc's libs with -Os.
|
2010-07-29 17:47:16 +00:00
|
|
|
|
2010-10-08 21:53:41 +00:00
|
|
|
config CC_GCC_LIBMUDFLAP
|
|
|
|
bool
|
|
|
|
prompt "Compile libmudflap"
|
|
|
|
help
|
|
|
|
libmudflap is a pointer-use checking tool, which can detect
|
|
|
|
various mis-usages of pointers in C and (to some extents) C++.
|
|
|
|
|
|
|
|
You should say 'N' here, as libmduflap generates instrumented
|
|
|
|
code (thus it is a bit bigger and a bit slower) and requires
|
|
|
|
re-compilation and re-link, while it exists better run-time
|
|
|
|
alternatives (eg. DUMA, dmalloc...) that need neither re-
|
|
|
|
compilation nor re-link.
|
|
|
|
|
2010-10-08 21:58:58 +00:00
|
|
|
config CC_GCC_LIBGOMP
|
|
|
|
bool
|
|
|
|
prompt "Compile libgomp"
|
|
|
|
help
|
|
|
|
libgomp is "the GNU implementation of the OpenMP Application Programming
|
|
|
|
Interface (API) for multi-platform shared-memory parallel programming in
|
|
|
|
C/C++ and Fortran". See:
|
|
|
|
http://gcc.gnu.org/onlinedocs/libgomp/
|
|
|
|
|
|
|
|
The default is 'N'. Say 'Y' if you need it, and report success/failure.
|
|
|
|
|
2010-10-09 09:38:04 +00:00
|
|
|
config CC_GCC_LIBSSP
|
|
|
|
bool
|
|
|
|
prompt "Compile libssp"
|
|
|
|
help
|
|
|
|
libssp is the run-time Stack-Smashing Protection library.
|
|
|
|
|
|
|
|
The default is 'N'. Say 'Y' if you need it, and report success/failure.
|
|
|
|
|
2012-05-06 13:32:56 +00:00
|
|
|
config CC_GCC_LIBQUADMATH
|
|
|
|
bool
|
|
|
|
prompt "Compile libquadmath"
|
|
|
|
depends on CC_GCC_HAS_LIBQUADMATH
|
|
|
|
help
|
|
|
|
libquadmath is a library which provides quad-precision mathematical
|
|
|
|
functions on targets supporting the __float128 datatype. See:
|
|
|
|
http://gcc.gnu.org/onlinedocs/libquadmath/
|
|
|
|
|
|
|
|
The default is 'N'. Say 'Y' if you need it, and report success/failure.
|
|
|
|
|
2010-10-08 21:53:41 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
2010-07-28 19:28:54 +00:00
|
|
|
comment "Misc. obscure options."
|
|
|
|
|
|
|
|
config CC_CXA_ATEXIT
|
|
|
|
bool
|
|
|
|
prompt "Use __cxa_atexit"
|
|
|
|
default y
|
|
|
|
depends on ! BARE_METAL
|
|
|
|
help
|
|
|
|
If you get the missing symbol "__cxa_atexit" when building C++ programs,
|
|
|
|
you might want to try disabling this option.
|
|
|
|
|
|
|
|
config CC_GCC_DISABLE_PCH
|
|
|
|
bool
|
|
|
|
prompt "Do not build PCH"
|
|
|
|
help
|
|
|
|
Say 'y' here to not use Pre-Compiled Headers in the resulting toolchain.
|
|
|
|
at the expense of speed when compiling C++ code.
|
|
|
|
|
|
|
|
For some configurations (most notably canadian?), PCH are broken, and
|
|
|
|
need to be disabled. Please see:
|
|
|
|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974
|
|
|
|
|
2010-07-28 21:53:09 +00:00
|
|
|
config CC_GCC_SJLJ_EXCEPTIONS
|
|
|
|
tristate
|
2010-07-28 19:28:54 +00:00
|
|
|
prompt "Use sjlj for exceptions"
|
2010-07-30 21:41:19 +00:00
|
|
|
depends on ! BARE_METAL
|
2010-07-28 21:53:09 +00:00
|
|
|
default m
|
2010-07-28 19:28:54 +00:00
|
|
|
help
|
2010-07-28 21:53:09 +00:00
|
|
|
'sjlj' is short for setjmp/longjmp.
|
2010-07-28 19:28:54 +00:00
|
|
|
|
2010-07-28 21:53:09 +00:00
|
|
|
On some architectures, stack unwinding during exception handling
|
|
|
|
works perfectly well without using sjlj, while on some others,
|
|
|
|
use of sjlj is required for proper stack unwinding.
|
2010-07-28 19:28:54 +00:00
|
|
|
|
2010-07-28 21:53:09 +00:00
|
|
|
Option | sjlj use | Associated ./configure switch
|
|
|
|
---------+--------------------+--------------------------------
|
|
|
|
Y | forcibly used | --enable-sjlj-exceptions
|
|
|
|
M | auto | (none, ./configure decides)
|
|
|
|
N | forcibly not used | --disable-sjlj-exceptions
|
2010-07-28 19:28:54 +00:00
|
|
|
|
2010-07-28 21:53:09 +00:00
|
|
|
It should be safe to say 'M' or 'N'.
|
|
|
|
|
|
|
|
It can happen that ./configure is wrong in some cases. Known
|
|
|
|
case is for ARM big endian, where you should say 'N'.
|
2010-07-28 21:55:10 +00:00
|
|
|
|
2010-10-09 20:49:28 +00:00
|
|
|
config CC_GCC_LDBL_128
|
|
|
|
tristate
|
|
|
|
prompt "Enable 128-bit long doubles"
|
|
|
|
default m
|
|
|
|
depends on CC_GCC_4_2_or_later
|
|
|
|
help
|
|
|
|
Saying 'Y' will force gcc to use 128-bit wide long doubles
|
|
|
|
Saying 'N' will force gcc to use 64-bit wide long doubles
|
|
|
|
Saying 'M' will let gcc choose (default is 128-bit for
|
|
|
|
glibc >= 2.4, 64-bit otherwise)
|
|
|
|
|
|
|
|
If in doubt, keep the default, ie. 'M'.
|
2011-06-27 11:52:15 +00:00
|
|
|
|
|
|
|
config CC_GCC_BUILD_ID
|
|
|
|
bool
|
|
|
|
prompt "Enable build-id"
|
|
|
|
depends on CC_GCC_HAS_BUILD_ID
|
|
|
|
help
|
|
|
|
Tells GCC to pass --build-id option to the linker for all final
|
|
|
|
links (links performed without the -r or --relocatable option),
|
|
|
|
if the linker supports it. If you say 'y' here, but your linker
|
|
|
|
does not support --build-id option, a warning is issued and this
|
|
|
|
option is ignored.
|
|
|
|
|
|
|
|
The default is off.
|
2011-06-27 13:15:00 +00:00
|
|
|
|
|
|
|
choice CC_GCC_LNK_HASH_STYLE_CHOICE
|
|
|
|
bool
|
|
|
|
prompt "linker hash style"
|
|
|
|
depends on CC_GCC_HAS_LNK_HASH_STYLE
|
2012-04-30 15:24:58 +00:00
|
|
|
depends on BINUTILS_HAS_HASH_STYLE
|
2011-06-27 13:15:00 +00:00
|
|
|
|
|
|
|
config CC_GCC_LNK_HASH_STYLE_DEFAULT
|
|
|
|
bool
|
|
|
|
prompt "Default"
|
|
|
|
help
|
|
|
|
Do not specify any value, and use the default value (sysv).
|
|
|
|
|
|
|
|
config CC_GCC_LNK_HASH_STYLE_SYSV
|
|
|
|
bool
|
|
|
|
prompt "sysv"
|
|
|
|
help
|
|
|
|
Force use of the SYSV hash style.
|
|
|
|
|
|
|
|
config CC_GCC_LNK_HASH_STYLE_GNU
|
|
|
|
bool
|
|
|
|
prompt "gnu"
|
|
|
|
help
|
|
|
|
Force use of the GNU hash style.
|
|
|
|
|
|
|
|
config CC_GCC_LNK_HASH_STYLE_BOTH
|
|
|
|
bool
|
|
|
|
prompt "both"
|
|
|
|
help
|
|
|
|
Force use of both hash styles.
|
|
|
|
|
|
|
|
endchoice # CC_GCC_LNK_HASH_STYLE_CHOICE
|
|
|
|
|
|
|
|
config CC_GCC_LNK_HASH_STYLE
|
|
|
|
string
|
|
|
|
default "" if CC_GCC_LNK_HASH_STYLE_DEFAULT
|
|
|
|
default "sysv" if CC_GCC_LNK_HASH_STYLE_SYSV
|
|
|
|
default "gnu" if CC_GCC_LNK_HASH_STYLE_GNU
|
|
|
|
default "both" if CC_GCC_LNK_HASH_STYLE_BOTH
|
2011-06-27 16:04:50 +00:00
|
|
|
|
2014-01-04 15:17:40 +00:00
|
|
|
choice CC_GCC_DEC_FLOATS_CHOICE
|
|
|
|
bool "Decimal floats"
|
|
|
|
default CC_GCC_DEC_FLOATS_AUTO
|
|
|
|
help
|
|
|
|
Choose what type of decimal floats to support.
|
|
|
|
|
|
|
|
Note that using decimal floats requires a C library that provides
|
|
|
|
support for fenv (namely, the fenv.h header). This is the case
|
|
|
|
for (e)glibc, and uClibc on x86/32. For other C libraries, or
|
|
|
|
uClibc on other archs, this might not be the case, so you should
|
|
|
|
disable support for decimal floats.
|
|
|
|
|
|
|
|
The default is to let ./configure decide.
|
|
|
|
|
|
|
|
config CC_GCC_DEC_FLOAT_AUTO
|
|
|
|
bool "auto"
|
|
|
|
help
|
|
|
|
Let ./configure decide. If you say 'y' here, gcc will default to:
|
|
|
|
- 'bid' for x86 (32- and 64-bit)
|
|
|
|
- 'dpd' for powerpc
|
|
|
|
- 'no' for the other architectures
|
|
|
|
|
|
|
|
config CC_GCC_DEC_FLOAT_BID
|
|
|
|
bool "bid"
|
|
|
|
help
|
|
|
|
Use the 'binary integer decimal' format for decimal floats.
|
|
|
|
|
|
|
|
config CC_GCC_DEC_FLOAT_DPD
|
|
|
|
bool "dpd"
|
|
|
|
help
|
|
|
|
Use the 'densely packed decimal' for decimal floats.
|
|
|
|
|
|
|
|
config CC_GCC_DEC_FLOATS_NO
|
|
|
|
bool "no"
|
|
|
|
help
|
|
|
|
Do not support decimal floats. The default.
|
|
|
|
|
|
|
|
endchoice # CC_GCC_DEC_FLOATS_CHOICE
|
|
|
|
|
|
|
|
config CC_GCC_DEC_FLOATS
|
|
|
|
string
|
|
|
|
default "" if CC_GCC_DEC_FLOATS_AUTO
|
|
|
|
default "bid" if CC_GCC_DEC_FLOATS_BID
|
|
|
|
default "dpd" if CC_GCC_DEC_FLOATS_DPD
|
|
|
|
default "no" if CC_GCC_DEC_FLOATS_NO
|
|
|
|
|
2011-06-27 16:04:50 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
config CC_GCC_HAS_ARCH_OPTIONS
|
|
|
|
bool
|
|
|
|
|
|
|
|
comment "archictecture-specific options"
|
|
|
|
depends on CC_GCC_HAS_ARCH_OPTIONS
|
|
|
|
|
|
|
|
if ARCH_mips
|
|
|
|
source "config/cc/gcc.in.mips"
|
|
|
|
endif # ARCH_mips
|