Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <firstname.lastname@example.org> * gcc.dg/torture/pr69941.c: Use __INT32_TYPE__ instead of int if __SIZEOF_INT__ is less than 4 bytes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240795 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
Showing with 13 additions and 2 deletions.