

#--------------------------------------------------------
# This is an example wrapper script for icc 10.1 on IA-32 - Please choose the correct wrapper for your build!
#--------------------------------------------------------
ARGS=$@
ICCARGS="-complex-limited-range -opt-multi-version-aggressive -static -IPF_fp_relaxed -rcd -ftz -fp-model fast=1 -fp-port -pragma-optimization-level=GCC -ffunction-sections -fp -auto_ilp32 -fomit-frame-pointer -inline-calloc -restrict -ansi-alias -alias-args -alias-const -prec-sqrt -pc64 -no-prec-div -msse2 -funroll-loops -unroll-aggressive -unroll -vec-guard-write -fno-builtin -mcpu=pentium4 -mtune=pentium4 -march=i686"
# For loop to change options of icc
for ARG in $@
do
case $ARG in
-fno-stack-protector )
ICCARGS="$ICCARGS -fno-stack-security-check"
;;
-fno-toplevel-reorder | -fno-asynchronous-unwind-tables | -nostdinc | -Werror | -pipe | -Wno-pointer-sign | -msoft-float | -ffreestanding | -maccumulate-outgoing-args )
;;
-Wall )
ICCARGS="$ICCARGS -w"
;;
-fno-omit-frame-pointer )
ICCARGS="$ICCARGS -fp"
;;
-mtune=pentium3 | -mtune=generic32 )
ICCARGS="$ICCARGS -mtune=pentium4"
;;
-Os )
ICCARGS="$ICCARGS -O3"
;;
-O2 | -O3 )
ICCARGS="$ICCARGS -O3 -ip -prefetch -wpo_ipo -scalar-rep"
;;
* )
ICCARGS="$ICCARGS $ARG"
;;
esac
done
icc $ICCARGS
exit $?