diff options
author | Kaipeng Zhou <zhoukaipeng3@huawei.com> | 2020-06-24 22:48:45 +0800 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:15:21 -0300 |
commit | 0dfa34bc3fb513cd53465bf6f64a2ebe80e4f8ad (patch) | |
tree | c5087697be97a80d0e9f8622741e0242f0b1170f /gcc/fortran/expr.c | |
parent | 467adb511d94d73d60d22c45f8b49ae43572864b (diff) | |
download | gcc-0dfa34bc3fb513cd53465bf6f64a2ebe80e4f8ad.zip gcc-0dfa34bc3fb513cd53465bf6f64a2ebe80e4f8ad.tar.gz gcc-0dfa34bc3fb513cd53465bf6f64a2ebe80e4f8ad.tar.bz2 |
store-merging: ICE in find_bswap_or_nop_1 PR95854.
The patch add a judgement in find_bswap_or_nop_1 to make sure both
operand1 and operand2 cannot be converted to unsigned HOST_WIDE_INT.
If not, return NULL.
gcc/ChangeLog:
2020-06-24 Kaipeng Zhou <zhoukaipeng3@huawei.com>
PR tree-optimization/95854
* gimple-ssa-store-merging.c (find_bswap_or_nop_1): Return NULL
if operand 1 or 2 of a BIT_FIELD_REF cannot be converted to
unsigned HOST_WIDE_INT.
gcc/testsuite/ChangeLog:
2020-06-24 Kaipeng Zhou <zhoukaipeng3@huawei.com>
PR tree-optimization/95854
* gcc.dg/pr95854.c: New test.
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions