summaryrefslogtreecommitdiff
path: root/abe-bisect-helper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abe-bisect-helper.sh')
-rwxr-xr-xabe-bisect-helper.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/abe-bisect-helper.sh b/abe-bisect-helper.sh
index 983c7232..eefe14a2 100755
--- a/abe-bisect-helper.sh
+++ b/abe-bisect-helper.sh
@@ -34,7 +34,25 @@ git --no-pager show $REV
set -x
cd ${RUNDIR}
-${ABE}/abe.sh --target ${TARGET} gcc=gcc.git@${REV} --set runtestflags="${EXP}=${TESTNAME}" --build all --check gcc --excludecheck gdb >& gcc-${REV}.log
+# Build list of gcc configure options depending on cpu/fpu/mode
+GCC_OVERRIDE_CONFIGURE=
+if [ x"${CPU}" != x ]; then
+ GCC_OVERRIDE_CONFIGURE="${GCC_OVERRIDE_CONFIGURE} --set gcc_override_configure=--with-cpu=${CPU}"
+fi
+if [ x"${FPU}" != x ]; then
+ GCC_OVERRIDE_CONFIGURE="${GCC_OVERRIDE_CONFIGURE} --set gcc_override_configure=--with-fpu=${FPU}"
+fi
+if [ x"${MODE}" != x ]; then
+ GCC_OVERRIDE_CONFIGURE="${GCC_OVERRIDE_CONFIGURE} --set gcc_override_configure=--with-mode=${MODE}"
+fi
+
+${ABE}/abe.sh --target ${TARGET} \
+ gcc=gcc.git@${REV} \
+ --set runtestflags="${EXP}=${TESTNAME}" \
+ ${GCC_OVERRIDE_CONFIGURE} \
+ --build all \
+ --check gcc\
+ --excludecheck gdb >& gcc-${REV}.log
[ $? -ne 0 ] && exit 125
sums=`find builds/*/${TARGET}/gcc.git~master_rev_${REV}-stage2/ -name "*.sum"`