gcc10_tests_simd.sh 802 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env bash
  2. export CC=gcc-10
  3. export CXX=g++-10
  4. if [ "$NEWCC" != "" ]; then
  5. export CC="$NEWCC"
  6. fi
  7. if [ "$NEWCXX" != "" ]; then
  8. export CXX="$NEWCXX"
  9. fi
  10. export LOGFILE=gcc10.log
  11. source ./tools/ci/scripts/init.sh
  12. # remove -flto -fwhole-program because gcc bug with lto + target attribute
  13. export CXXFLAGS="$CXXFLAGS -pedantic -ggdb3 -O5 -pipe -Wstrict-aliasing=2 \
  14. -Wstrict-overflow=1 -Wformat=1 -D_FORTIFY_SOURCE=2 \
  15. -ffast-math -funswitch-loops \
  16. -funsafe-loop-optimizations \
  17. -march=native -fsched-pressure
  18. -std=gnu++2a -Wformat=1 \
  19. -fno-var-tracking -Wno-attributes"
  20. source ./tools/ci/flags/gcc10.sh
  21. export CXXFLAGS="$CXXFLAGS $POST_CXXFLAGS"
  22. do_init
  23. run_configure --enable-unittests=yes $*
  24. export SDL_VIDEODRIVER=dummy
  25. run_make_check
  26. source ./tools/ci/scripts/exit.sh
  27. exit 0