We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae4197 commit 7f0866aCopy full SHA for 7f0866a
1 file changed
Makefile
@@ -47,7 +47,9 @@ endif
47
#endif
48
49
# IMPORTANT: Do NOT remove -ftrapv from the list of flags, it is used to allow
50
-# signed integer arithmetic without explicit overflow checks.
+# signed integer arithmetic without explicit overflow checks. Also make sure
51
+# that -ftrapv ALWAYS comes after -fno-strict-overflow, as
52
+# -fno-strict-overflow implies -fwrapv, and -ftrapv must override -fwrapv.
53
FORTIFY_CFLAGS := -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 \
54
-fstack-clash-protection -fstack-protector-all \
55
-fno-delete-null-pointer-checks -fno-strict-overflow -fno-strict-aliasing \
0 commit comments