diff options
Diffstat (limited to 'tools/pipol/nightly/multiopt')
-rwxr-xr-x | tools/pipol/nightly/multiopt | 70 |
1 files changed, 51 insertions, 19 deletions
diff --git a/tools/pipol/nightly/multiopt b/tools/pipol/nightly/multiopt index 2b85aa4..c897c62 100755 --- a/tools/pipol/nightly/multiopt +++ b/tools/pipol/nightly/multiopt @@ -8,19 +8,19 @@ RET=0 # Set RANDOM_OPT to random compiler options # [no parameter] # -# Setting random seed enables replay -RANDOM=$PIPOL_JOB - function random_opt() { CONFIGURE_OPTIONS=(\ --enable-assert=full \ - --enable-thread-safe \ --disable-shared) # some options are not available everywhere -if [[ $PIPOL_IMAGE == *i386-linux* || $PIPOL_IMAGE == *amd64* ]]; then - CONFIGURE_OPTIONS[${#CONFIGURE_OPTIONS[*]}]=--disable-alloca -fi +case $PIPOL_IMAGE in + *mac*) + : ;; + *linux*) + CONFIGURE_OPTIONS[${#CONFIGURE_OPTIONS[*]}] = --enable-thread-safe + ;; +esac # we did already compile with --enable-assert=full, so don't use zero value local number=${RANDOM:-3} @@ -36,9 +36,18 @@ unset CFLAGS_OPT CFLAGS_OPTIONS=(\ -O3 \ -ansi \ - "-std=c99 -D _XOPEN_SOURCE=500" \ - "-D _FORTIFY_SOURCE=2" \ + -std=c99 \ -fno-common) +# some options are not available everywhere +case $PIPOL_IMAGE in + *mac*) + : ;; + *linux*) + CFLAGS_OPTIONS[${#CFLAGS_OPTIONS[*]}]="-D_FORTIFY_SOURCE=2" + CFLAGS_OPTIONS[${#CFLAGS_OPTIONS[*]}]="-D_XOPEN_SOURCE=500" + ;; +esac + for ((i=0; i < ${#CFLAGS_OPTIONS[*]}; i++)); do j=$i+${#CONFIGURE_OPTIONS[*]} if [ $(($((2**j)) & number)) -ne 0 ]; then @@ -105,13 +114,10 @@ function clean_compile_dir() # # Deploy images # -#PIPOL esn amd64-linux-fedora-core8.dd.gz none 02:00 --silent --user -#PIPOL esn i386-linux-fedora-core8.dd.gz none 02:00 --silent --user - -### #PIPOL esn amd64-linux-redhatEL-5.0.dd.gz none 02:00 --silent --user -### #PIPOL esn i386-linux-redhatEL-5.0.dd.gz none 02:00 --silent --user -#PIPOL esn ia64-linux-redhatEL-5.0.dd none 02:00 --silent --user -### #PIPOL esn ia64-linux-fedora-core9.dd none 02:00 --silent --user +#PIPOL esn amd64-linux-fedora-core9.dd.gz none 02:00 --silent --user +#PIPOL esn i386-linux-fedora-core9.dd.gz none 02:00 --silent --user +#PIPOL esn ia64-linux-fedora-core9.dd none 02:00 --silent --user +#PIPOL esn i386-linux-debian-testing.dd.gz none 02:00 --silent --user #PIPOL esn i386_mac-mac-osx-server-leopard.dd.gz none 02:00 --silent --user @@ -126,9 +132,14 @@ function clean_compile_dir() case $PIPOL_IMAGE in *i386-linux*) # set path to SUN studio compiler export PATH=/net/i386/sunstudio/sunstudio12/bin:$PATH + # set path to Intel compiler (bin, lib, and so on) + . /net/i386/icc/11.0.074/bin/iccvars.sh ia32 ;; *amd64-linux*) # set path to Intel compiler (bin, lib, and so on) - . /net/amd64/icc/11.0.074/bin/intel64/iccvars_intel64.sh + . /net/amd64/icc/11.0.074/bin/iccvars.sh intel64 + ;; + *ia64-linux*) # set path to Intel compiler (bin, lib, and so on) + . /net/ia64/icc/11.0.074/bin/iccvars.sh ia64 ;; esac @@ -146,6 +157,10 @@ case $PIPOL_IMAGE in ;; esac +# Setting random seed enables replay +#RANDOM=$PIPOL_JOB +RANDOM=$$ + # this is understood by both mpc and mpfr compilation processes export GMP_CHECK_RANDOMIZE=1 @@ -157,7 +172,8 @@ log $SCRIPTS_DIR/get-svn.sh mpfr/trunk mpfr-trunk get_revision $PIPOL_WDIR/mpfr-trunk REVISION="mpfr(r$REVISION)" export MPFR_CHECK_MAX=1 -export MPFR_CHECK_ALL=1 +export MPFR_CHECK_SUSPICIOUS_OVERFLOW=1 +export MPFR_CHECK_LIBC_PRINTF=1 log $SCRIPTS_DIR/compile-svn.sh mpfr-trunk clean_compile_dir $PIPOL_WDIR/mpfr-trunk @@ -172,13 +188,21 @@ case $PIPOL_IMAGE in *i386-linux*) # SUN Studio compiler clean_compile_dir $PIPOL_WDIR/mpfr-trunk - log $SCRIPTS_DIR/compile-svn.sh mpfr-trunk CC="cc" + log $SCRIPTS_DIR/compile-svn.sh mpfr-trunk CC=cc + # Intel compiler + clean_compile_dir $PIPOL_WDIR/mpfr-trunk + log $SCRIPTS_DIR/compile-svn.sh mpfr-trunk CC=icc CFLAGS=\"-Wno-error\" ;; *amd64-linux*) # Intel compiler clean_compile_dir $PIPOL_WDIR/mpfr-trunk log $SCRIPTS_DIR/compile-svn.sh mpfr-trunk CC="icc" ;; + *ia64-linux*) + # Intel compiler + clean_compile_dir $PIPOL_WDIR/mpfr-trunk + log $SCRIPTS_DIR/compile-svn.sh mpfr-trunk CC=icc CFLAGS=\"-Wno-error\" + ;; esac # @@ -202,12 +226,20 @@ case $PIPOL_IMAGE in # SUN Studio compiler clean_compile_dir $PIPOL_WDIR/mpc-trunk log $SCRIPTS_DIR/compile-svn.sh mpc-trunk CC="cc" + # Intel compiler + clean_compile_dir $PIPOL_WDIR/mpc-trunk + log $SCRIPTS_DIR/compile-svn.sh mpc-trunk CC=icc CFLAGS=\"-Wno-error\" ;; *amd64-linux*) # Intel compiler clean_compile_dir $PIPOL_WDIR/mpc-trunk log $SCRIPTS_DIR/compile-svn.sh mpc-trunk CC=icc CFLAGS=\"-Wno-error\" ;; + *ia64-linux*) + # Intel compiler + clean_compile_dir $PIPOL_WDIR/mpc-trunk + log $SCRIPTS_DIR/compile-svn.sh mpc-trunk CC=icc CFLAGS=\"-Wno-error\" + ;; esac # |