IBM Z: Use tree_fits_uhwi_p in vector_alignment hook
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 5 Nov 2019 13:21:06 +0000 (13:21 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 5 Nov 2019 13:21:06 +0000 (13:21 +0000)
commit76d8b4d1ada1d9a6c1408b9b94b0baa31d1f3c0c
treeccbc3d5d70700ffbe7109bb329ae1e69ca16ee40
parent30f1f974b8c4eff694632331d66ff02c3c3404d3
IBM Z: Use tree_fits_uhwi_p in vector_alignment hook

This fixes an ICE in gcc.dg/attr-vector_size.c testcase.

gcc/ChangeLog:

2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390.c (s390_vector_alignment): Check if the value
fits into uhwi before using it.

From-SVN: r277829
gcc/ChangeLog
gcc/config/s390/s390.c