diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-11-24 20:28:25 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-11-24 20:28:25 +0000 |
commit | ee147994b73360352ce0e89e63ae03ce8a73f14b (patch) | |
tree | cfc400970b4cf64521668cceb1bc798b1451ad58 /configure.ac | |
parent | e36f3b052619df4a96ee78a6532b5ec8c9cf03dc (diff) |
Use GCC flags to avoid optimization problems due to undefined behaviour
Adding flags suggested by article at:
http://pdos.csail.mit.edu/~xi/papers/stack-sosp13.pdf
svn path=/trunk/; revision=53551
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 532426494f..55424df8e1 100644 --- a/configure.ac +++ b/configure.ac @@ -816,6 +816,10 @@ AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wpointer-arith) AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wno-pointer-sign, C) AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Warray-bounds) AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wformat-security) +AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fwrapv) +AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fno-strict-overflow) +AC_WIRESHARK_COMPILER_FLAGS_CHECK(-fno-delete-null-pointer-checks) +AC_WIRESHARK_COMPILER_FLAGS_CHECK(-ftrapv) AC_WIRESHARK_COMPILER_FLAGS_CHECK(-Wold-style-definition, C) # The Qt headers generate a ton of shortening errors on 64-bit systems # so only enable this for C for now. |