Skip to content

Commit 63b58ad

Browse files
derSteFfijvoisin
authored andcommitted
bench/security: add -fno-ipa-pure-const to compile options
this tells gcc not to mark functions as pure or const on its own, which would enable some optimisations that might undermine security tests. Fixes #207
1 parent 33687f7 commit 63b58ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bench/security/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ macro (add_security_test test_name test_file allocation_size)
99
-fno-inline
1010
-fno-builtin-inline
1111
-fno-inline-small-functions
12+
-fno-ipa-pure-const
1213
-DALLOCATION_SIZE=${allocation_size})
1314
endmacro ()
1415

0 commit comments

Comments
 (0)