summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2012-08-04 21:15:02 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2012-08-04 21:15:02 (GMT)
commitfa0ca9dfeaa491a59c5958c4b2fe2e4690e17544 (patch)
tree2a3175b3be5db0f84e89915580fef81aa0130d8f /scripts/build/cc/gcc.sh
parent732128112f055985975be5c7255940510ac5fd64 (diff)
cc/gcc: remove duplicate code in core pass-1
Whatever the threading model (NPTL, LT...), we build the same core pass-1 compiler, so there is no need to have a case-esac construct. Remove now mis-leading and incorect comment. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh26
1 files changed, 6 insertions, 20 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 707a426..e73cf11 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -75,26 +75,12 @@ cc_gcc_lang_list() {
do_cc_core_pass_1() {
local -a core_opts
- # We only need a pass-1 core gcc if the threading model is NPTL.
- # For all other cases, it is not used.
- case "${CT_THREADS}" in
- nptl)
- core_opts+=( "mode=static" )
- core_opts+=( "host=${CT_BUILD}" )
- core_opts+=( "complibs=${CT_BUILDTOOLS_PREFIX_DIR}" )
- core_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" )
- core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
- core_opts+=( "lang_list=c" )
- ;;
- *)
- core_opts+=( "mode=static" )
- core_opts+=( "host=${CT_BUILD}" )
- core_opts+=( "complibs=${CT_BUILDTOOLS_PREFIX_DIR}" )
- core_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" )
- core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
- core_opts+=( "lang_list=c" )
- ;;
- esac
+ core_opts+=( "mode=static" )
+ core_opts+=( "host=${CT_BUILD}" )
+ core_opts+=( "complibs=${CT_BUILDTOOLS_PREFIX_DIR}" )
+ core_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" )
+ core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
+ core_opts+=( "lang_list=c" )
CT_DoStep INFO "Installing pass-1 core C compiler"
CT_mkdir_pushd "${CT_BUILD_DIR}/build-cc-core-pass-1"