Revert to O2, also add -Wno-aggressive-loop-optimizations instead of -f