[Bug target/102352] Add -mstack-protector-guard=... for arm32

2021-10-14 Thread ardb at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102352

Ard Biesheuvel  changed:

   What|Removed |Added

 CC||ardb at kernel dot org

--- Comment #1 from Ard Biesheuvel  ---
For 32-bit ARM, it would be useful to have

   -mstack-protector-guard=tls
   -mstack-protector-guard-offset=

and use gen_load_tp_hard() internally. As we also use the TLS register to index
other per-task data (using __builtin_thread_pointer()), we get better code this
way, since the compiler understands that there is no need to load the TLS
register multiple times in the same function.

[Bug target/102352] Add -mstack-protector-guard=... for arm32

2021-09-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102352

Andrew Pinski  changed:

   What|Removed |Added

   Severity|normal  |enhancement