https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90568
--- Comment #1 from Peter Cordes ---
https://godbolt.org/z/hHCVTc
Forgot to mention, stack-protector also disables use of the red-zone for no
apparent reason, so that's another missed optimization. (Perhaps rarely
relevant; probably most functi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90568
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90568
--- Comment #3 from Peter Cordes ---
(In reply to Jakub Jelinek from comment #2)
> The xor there is intentional, for security reasons we do not want the stack
> canary to stay in the register afterwards, because then it could be later
> spilled o
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90568
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90568
--- Comment #5 from Peter Cordes ---
And BTW, this only helps if the SUB and JNE are consecutive, which GCC
(correctly) doesn't currently optimize for with XOR.
If this sub/jne is different from a normal sub/branch and won't already get
optimize
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90568
--- Comment #6 from Jakub Jelinek ---
Created attachment 46401
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46401&action=edit
gcc10-pr90568-2.patch
Incremental untested patch for the macro-fusion, on top of
https://gcc.gnu.org/ml/gcc-pat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90568
--- Comment #7 from Jakub Jelinek ---
Author: jakub
Date: Thu May 23 11:18:41 2019
New Revision: 271552
URL: https://gcc.gnu.org/viewcvs?rev=271552&root=gcc&view=rev
Log:
PR target/90568
* config/i386/i386.md (stack_protect_test_
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90568
--- Comment #8 from Jakub Jelinek ---
Author: jakub
Date: Fri May 24 08:58:50 2019
New Revision: 271596
URL: https://gcc.gnu.org/viewcvs?rev=271596&root=gcc&view=rev
Log:
PR target/90568
* config/i386/x86-tune-sched.c (ix86_macro
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90568
Jakub Jelinek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---