[gcc(refs/users/aoliva/heads/hardcond)] enable hardening of conditionals for testing
Alexandre Oliva
aoliva@gcc.gnu.org
Thu Oct 21 16:05:56 GMT 2021
https://gcc.gnu.org/g:aeda5e8722efcd58b4ab9059b4973059f54e2349
commit aeda5e8722efcd58b4ab9059b4973059f54e2349
Author: Alexandre Oliva <oliva@gnu.org>
Date: Tue Oct 19 04:51:00 2021 -0300
enable hardening of conditionals for testing
Diff:
---
gcc/common.opt | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gcc/common.opt b/gcc/common.opt
index 7144755f66d..c88f0b6f263 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -1722,12 +1722,14 @@ fguess-branch-probability
Common Var(flag_guess_branch_prob) Optimization
Enable guessing of branch probabilities.
+; ??? Do NOT enable by default
fharden-compares
-Common Var(flag_harden_compares) Optimization
+Common Var(flag_harden_compares) Optimization Init(1)
Harden conditionals not used in branches, checking reversed conditions.
+; ??? Do NOT enable by default
fharden-conditional-branches
-Common Var(flag_harden_conditional_branches) Optimization
+Common Var(flag_harden_conditional_branches) Optimization Init(1)
Harden conditional branches by checking reversed conditions.
; Nonzero means ignore `#ident' directives. 0 means handle them.
More information about the Gcc-cvs
mailing list