S/390: Fix ICE in s390_check_qrst_address ()
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 24 Oct 2018 12:04:53 +0000 (12:04 +0000)
committerIlya Leoshkevich <iii@gcc.gnu.org>
Wed, 24 Oct 2018 12:04:53 +0000 (12:04 +0000)
commit6f7133ec4f4b34aca38c286bb3d95c311206d1c6
tree4a9a2fdc02deda673a66e0b5eb44a41d45798fc8
parentbe43a8877e2f2f4590ba667b27a24a0cfdf8141d
S/390: Fix ICE in s390_check_qrst_address ()

In r265371 (S/390: Make "b" constraint match literal pool references)
the CONSTANT_POOL_ADDRESS_P () check was moved from
s390_loadrelative_operand_p () to s390_check_qrst_address ().  However,
in the original code it was guarded by SYMBOL_REF_P (), which was not
added to the new code.

gcc/ChangeLog:

2018-10-24  Ilya Leoshkevich  <iii@linux.ibm.com>

* config/s390/s390.c (s390_check_qrst_address): Add the missing
SYMBOL_REF_P () check.

gcc/testsuite/ChangeLog:

2018-10-24  Ilya Leoshkevich  <iii@linux.ibm.com>

* gcc.target/s390/20181024-1.c: New test.

From-SVN: r265458
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/20181024-1.c [new file with mode: 0644]