# HG changeset patch # User "Yann E. MORIN" # Date 1344114902 -7200 # Node ID 1ced7cc63576ff3af3f2f3ab32cd58b6a2c41ef6 # Parent 8b914f5ce90dcd964de0de89af115bae22d75aa6 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 -r 8b914f5ce90d -r 1ced7cc63576 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Fri Aug 03 01:26:12 2012 +0200 +++ b/scripts/build/cc/gcc.sh Sat Aug 04 23:15:02 2012 +0200 @@ -75,26 +75,12 @@ 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"