From fa0ca9dfeaa491a59c5958c4b2fe2e4690e17544 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 4 Aug 2012 23:15:02 +0200 Subject: 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" 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" -- cgit v0.10.2-6-g49f6