re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924 caused...
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Sep 2017 16:49:26 +0000 (18:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Sep 2017 16:49:26 +0000 (18:49 +0200)
commitbff0050a4ee85782d8f43a2aa660aad5f466f67a
treed232ba9af0c77e1af1f17a69140098faa777f700
parentde7c2c6a2479de0002f6a07002b6bca4a3a73015
re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924 caused by r250815)

PR target/81766
* config/i386/i386.c (ix86_init_large_pic_reg): Return label instead of void.
(ix86_init_pic_reg): Remember label from ix86_init_large_pic_reg, if non-NULL
and preceded by NOTE_INSN_BASIC_BLOCK, swap the note and label.

* gcc.target/i386/pr81766.c: New test.

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