2018-02-23 10:22:38 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. other/analysis/gen-file.sh
|
|
|
|
|
2018-07-17 09:18:04 +08:00
|
|
|
echo "Running GCC"
|
2018-02-23 10:22:38 +08:00
|
|
|
# TODO(iphydf): Get rid of all VLAs, then enable -fstack-protector -Wstack-protector
|
2018-07-17 09:18:04 +08:00
|
|
|
g++ -O3 -o /dev/null amalgamation.cc \
|
|
|
|
$CPPFLAGS \
|
|
|
|
$LDFLAGS \
|
|
|
|
-std=c++11 \
|
2018-02-23 10:22:38 +08:00
|
|
|
-pedantic \
|
2018-07-17 09:18:04 +08:00
|
|
|
-fdiagnostics-color=always \
|
2018-02-23 10:22:38 +08:00
|
|
|
-Wall \
|
|
|
|
-Wextra \
|
|
|
|
-Wno-aggregate-return \
|
|
|
|
-Wno-aggressive-loop-optimizations \
|
|
|
|
-Wno-float-conversion \
|
|
|
|
-Wno-format-signedness \
|
|
|
|
-Wno-missing-field-initializers \
|
|
|
|
-Wno-padded \
|
|
|
|
-Wno-sign-compare \
|
|
|
|
-Wno-sign-conversion \
|
|
|
|
-Wno-switch-default \
|
|
|
|
-Wno-unused-parameter \
|
|
|
|
-Wstrict-aliasing=0 \
|
|
|
|
-Wstrict-overflow=1 \
|
2018-07-17 09:18:04 +08:00
|
|
|
\
|
2018-02-23 10:22:38 +08:00
|
|
|
-Wmissing-declarations \
|
|
|
|
-Wbool-compare \
|
|
|
|
-Wcast-align \
|
|
|
|
-Wcast-qual \
|
|
|
|
-Wchar-subscripts \
|
|
|
|
-Wdouble-promotion \
|
|
|
|
-Wduplicated-cond \
|
|
|
|
-Wempty-body \
|
|
|
|
-Wenum-compare \
|
|
|
|
-Wfloat-equal \
|
|
|
|
-Wformat=2 \
|
|
|
|
-Wframe-address \
|
|
|
|
-Wframe-larger-than=133168 \
|
|
|
|
-Wignored-qualifiers \
|
|
|
|
-Wignored-attributes \
|
|
|
|
-Winit-self \
|
|
|
|
-Winline \
|
|
|
|
-Wlarger-than=133120 \
|
|
|
|
-Wmaybe-uninitialized \
|
|
|
|
-Wmemset-transposed-args \
|
|
|
|
-Wmisleading-indentation \
|
|
|
|
-Wnonnull \
|
|
|
|
-Wnonnull-compare \
|
|
|
|
-Wnull-dereference \
|
|
|
|
-Wodr \
|
|
|
|
-Wredundant-decls \
|
|
|
|
-Wreturn-type \
|
|
|
|
-Wshadow \
|
|
|
|
-Wsuggest-attribute=format \
|
|
|
|
-Wundef \
|
|
|
|
-Wunsafe-loop-optimizations \
|
|
|
|
-Wunused-label \
|
|
|
|
-Wunused-local-typedefs \
|
|
|
|
-Wunused-value \
|
|
|
|
-Wunused-but-set-parameter \
|
|
|
|
-Wunused-but-set-variable \
|