public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/hardcond)] enable hardening of conditionals for testing
@ 2021-10-21 16:05 Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2021-10-21 16:05 UTC (permalink / raw)
To: gcc-cvs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gcc(refs/users/aoliva/heads/hardcond)] enable hardening of conditionals for testing
@ 2021-10-19 7:53 Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2021-10-19 7:53 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:16de74aad4cc40ee5de0c2dfb2df98dfe9a6bafe
commit 16de74aad4cc40ee5de0c2dfb2df98dfe9a6bafe
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-21 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 16:05 [gcc(refs/users/aoliva/heads/hardcond)] enable hardening of conditionals for testing Alexandre Oliva
-- strict thread matches above, loose matches on Subject: below --
2021-10-19 7:53 Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).