diff options
author | Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> | 2016-10-05 17:11:22 +0000 |
---|---|---|
committer | Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org> | 2016-10-05 17:11:22 +0000 |
commit | 743a9cf79aee4f5a645991a9fda20e15050d32f3 (patch) | |
tree | 15539c22cc3de27531bf0434f8566fc4be223fca /gcc/fortran/resolve.c | |
parent | a40278c3e39a5ef2a35a0f8c4e6ce359c9af9832 (diff) | |
download | gcc-743a9cf79aee4f5a645991a9fda20e15050d32f3.zip gcc-743a9cf79aee4f5a645991a9fda20e15050d32f3.tar.gz gcc-743a9cf79aee4f5a645991a9fda20e15050d32f3.tar.bz2 |
Fix pr69941.c test failure for avr
The test assumes ints are atleast 32 bits wide. For the avr
target, ints are 16 bits wide. This leads VRP to conclude
that a right shift by 9 followed by an equality comparison
to 0x74 can never be true. VRP eliminates the conditional, and
the code ends up unconditionally calling __builtin_abort.
Fixed the testcase to use __INT32_TYPE__ for targets with less
than 32 bit wide integers, wherever the size happens to be
significant.
gcc/testsuite/ChangeLog
2016-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* gcc.dg/torture/pr69941.c: Use __INT32_TYPE__ instead
of int if __SIZEOF_INT__ is less than 4 bytes.
From-SVN: r240795
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions