re PR target/77991 (ICE on x32 in plus_constant, at explow.c:87)
authorUros Bizjak <uros@gcc.gnu.org>
Tue, 18 Oct 2016 14:39:39 +0000 (16:39 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 18 Oct 2016 14:39:39 +0000 (16:39 +0200)
commit5cb96b6a87ec58038803fd093974e383483ed76e
treeca19209cf12776f0c855b965c246702429ba054b
parent812ba636c7b12f2c503e34aaf9e2da50d5777b82
re PR target/77991 (ICE on x32 in plus_constant, at explow.c:87)

PR target/77991
* config/i386/i386.c (legitimize_tls_address)
<case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
convert dest to Pmode if different than Pmode.

testsuite/ChangeLog:

PR target/77991
* gcc.target/i386/pr77991.c: New test.

From-SVN: r241308
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr77991.c [new file with mode: 0644]