case $host_os in
mingw*)
-CCOPT=`gcc -O2 -Q --help=optimizers | grep enabled | sed 's/\[enabled\]//' | tr '\n' ' ' | sed 's/[[:blank:]]\+/ /g'`
- CCOPT1="-falign-functions \
--falign-jumps \
--falign-labels \
--falign-loops \
--fasynchronous-unwind-tables \
--fbranch-count-reg \
--fcaller-saves \
--fcombine-stack-adjustments \
--fcommon \
--fcompare-elim \
--fcprop-registers \
--fcrossjumping \
--fcse-follow-jumps \
--fdce \
--fdefer-pop \
--fdelete-null-pointer-checks \
--fdevirtualize \
--fdse \
--fearly-inlining \
--fexpensive-optimizations \
--fforward-propagate \
--fgcse \
--fgcse-lm \
--fguess-branch-probability \
--fif-conversion \
--fif-conversion2 \
--finline-atomics \
--finline-functions-called-once \
--finline-small-functions \
--fipa-cp \
--fipa-profile \
--fipa-pure-const \
--fipa-reference \
--fipa-sra \
--fivopts \
--fjump-tables \
--fmath-errno \
--fmerge-constants \
--fmove-loop-invariants \
--foptimize-register-move \
--foptimize-sibling-calls \
--foptimize-strlen \
--fpeephole \
--fpeephole2 \
--fregmove \
--frename-registers \
--freorder-blocks \
--freorder-functions \
--frerun-cse-after-loop \
--fsched-critical-path-heuristic \
--fsched-dep-count-heuristic \
--fsched-group-heuristic \
--fsched-interblock \
--fsched-last-insn-heuristic \
--fsched-rank-heuristic \
--fsched-spec \
--fsched-spec-insn-heuristic \
--fsched-stalled-insns-dep \
--fschedule-insns2 \
--fset-stack-executable \
--fshort-enums \
--fshrink-wrap \
--fsigned-zeros \
--fsplit-ivs-in-unroller \
--fsplit-wide-types \
--fstrict-aliasing \
--fthread-jumps \
--ftoplevel-reorder \
--ftrapping-math \
--ftree-bit-ccp \
--ftree-builtin-call-dce \
--ftree-ccp \
--ftree-ch \
--ftree-copy-prop \
--ftree-copyrename \
--ftree-cselim \
--ftree-dce \
--ftree-dominator-opts \
--ftree-dse \
--ftree-forwprop \
--ftree-fre \
--ftree-loop-if-convert \
--ftree-loop-im \
--ftree-loop-ivcanon \
--ftree-loop-optimize \
--ftree-phiprop \
--ftree-pre \
--ftree-pta \
--ftree-reassoc \
--ftree-scev-cprop \
--ftree-sink \
--ftree-slp-vectorize \
--ftree-sra \
--ftree-switch-conversion \
--ftree-tail-merge \
--ftree-ter \
--ftree-vect-loop-version \
--ftree-vrp \
--funit-at-a-time \
--fvar-tracking-assignments \
--fvect-cost-model \
--fweb"
+ #durty hack fixes weird behaviour of gcc -O[123] optimizations with ejdb test cases on win32
+ CCOPT=`gcc -O2 -Q --help=optimizers | grep enabled | sed 's/\[[enabled\]]//' | tr '\n' ' ' | sed 's/[[[:blank:]]]\+/ /g'`
;;
*)
CCOPT="-O3"