| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
. other/analysis/gen-file.sh |
| 4 |
|
| 5 |
set -e |
| 6 |
|
| 7 |
run() { |
| 8 |
echo "Running GCC in variant '$*'" |
| 9 |
# TODO(iphydf): Get rid of all VLAs, then enable -fstack-protector -Wstack-protector |
| 10 |
g++ -O3 -o /dev/null amalgamation.cc \ |
| 11 |
"${CPPFLAGS[@]}" \ |
| 12 |
"${LDFLAGS[@]}" \ |
| 13 |
"$@" \ |
| 14 |
-std=c++20 \ |
| 15 |
-fdiagnostics-color=always \ |
| 16 |
-Wall \ |
| 17 |
-Wextra \ |
| 18 |
-Werror \ |
| 19 |
-Wno-error=type-limits \ |
| 20 |
-Wno-aggressive-loop-optimizations \ |
| 21 |
-Wno-float-conversion \ |
| 22 |
-Wno-format-signedness \ |
| 23 |
-Wno-inline \ |
| 24 |
-Wno-missing-field-initializers \ |
| 25 |
-Wno-nonnull-compare \ |
| 26 |
-Wno-padded \ |
| 27 |
-Wno-sign-compare \ |
| 28 |
-Wno-sign-conversion \ |
| 29 |
-Wno-switch-default \ |
| 30 |
-Wno-unused-parameter \ |
| 31 |
-Wstrict-aliasing=0 \ |
| 32 |
-Wstrict-overflow=1 \ |
| 33 |
\ |
| 34 |
-Wmissing-declarations \ |
| 35 |
-Wbool-compare \ |
| 36 |
-Wcast-align \ |
| 37 |
-Wcast-qual \ |
| 38 |
-Wchar-subscripts \ |
| 39 |
-Wdouble-promotion \ |
| 40 |
-Wduplicated-cond \ |
| 41 |
-Wempty-body \ |
| 42 |
-Wenum-compare \ |
| 43 |
-Wfloat-equal \ |
| 44 |
-Wformat=2 \ |
| 45 |
-Wframe-address \ |
| 46 |
-Wframe-larger-than=9000 \ |
| 47 |
-Wignored-attributes \ |
| 48 |
-Wignored-qualifiers \ |
| 49 |
-Winit-self \ |
| 50 |
-Wlarger-than=530000 \ |
| 51 |
-Wmaybe-uninitialized \ |
| 52 |
-Wmemset-transposed-args \ |
| 53 |
-Wmisleading-indentation \ |
| 54 |
-Wnonnull \ |
| 55 |
-Wnull-dereference \ |
| 56 |
-Wodr \ |
| 57 |
-Wredundant-decls \ |
| 58 |
-Wreturn-type \ |
| 59 |
-Wshadow \ |
| 60 |
-Wsuggest-attribute=format \ |
| 61 |
-Wundef \ |
| 62 |
-Wunsafe-loop-optimizations \ |
| 63 |
-Wunused-label \ |
| 64 |
-Wunused-local-typedefs \ |
| 65 |
-Wunused-value \ |
| 66 |
-Wunused-but-set-parameter \ |
| 67 |
-Wunused-but-set-variable \ |
| 68 |
-fopenmp \ |
| 69 |
-Wno-unused-function |
| 70 |
# TODO(iphydf): Remove this last 1 when the test framework matures. |
| 71 |
} |
| 72 |
|
| 73 |
. other/analysis/variants.sh |