re PR middle-end/83945 (internal compiler error: Segmentation fault with -O -fcode...
authorJakub Jelinek <jakub@redhat.com>
Sat, 20 Jan 2018 09:58:31 +0000 (10:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 20 Jan 2018 09:58:31 +0000 (10:58 +0100)
commit37b7e7873d3a3e79523f4474a330fe41e1a90b36
tree637882dab05745b1e461c3f9b187d24c7441155b
parent09cbbded0d197f2da4f01be6f90c8535474b8200
re PR middle-end/83945 (internal compiler error: Segmentation fault with -O -fcode-hoisting)

PR middle-end/83945
* tree-emutls.c: Include gimplify.h.
(lower_emutls_2): New function.
(lower_emutls_1): If ADDR_EXPR is a gimple invariant and walk_tree
with lower_emutls_2 callback finds some TLS decl in it, unshare_expr
it before further processing.

* gcc.dg/tls/pr83945.c: New test.

From-SVN: r256916
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tls/pr83945.c [new file with mode: 0644]
gcc/tree-emutls.c