re PR target/85644 (-fstack-protector generates invalid read to %fs:0x0 on mac)
authorJakub Jelinek <jakub@redhat.com>
Thu, 22 Nov 2018 09:48:43 +0000 (10:48 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 22 Nov 2018 09:48:43 +0000 (10:48 +0100)
commite15bac63bad1cae4efa93f9b783e0397bca13f1d
tree16f84a2eaae3e50edd7edaf71d476d8a32f9e834
parent3bcd988251e21dbc5bc6617b1c67aad6cf24a465
re PR target/85644 (-fstack-protector generates invalid read to %fs:0x0 on mac)

PR target/85644
PR target/86832
* config/i386/i386.c (ix86_option_override_internal): Default
ix86_stack_protector_guard to SSP_TLS only if TARGET_THREAD_SSP_OFFSET
is defined.
* config/i386/i386.md (stack_protect_set, stack_protect_set_<mode>,
stack_protect_test, stack_protect_test_<mode>): Use empty condition
instead of TARGET_SSP_TLS_GUARD.

From-SVN: r266370
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md