re PR middle-end/80163 (ICE on hopefully valid code)
authorJakub Jelinek <jakub@redhat.com>
Fri, 31 Mar 2017 06:32:46 +0000 (08:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 31 Mar 2017 06:32:46 +0000 (08:32 +0200)
commita7d551541989a53c964d5cc54359069bf4cf919a
treefea535e8d66f9e488a837e68fe8734100a548f95
parent005f12bf67e60ada0757470be80fe69799a83ebc
re PR middle-end/80163 (ICE on hopefully valid code)

PR middle-end/80163
* varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
conversions to integer types wider than word and pointer.

* gcc.dg/pr80163.c: New test.

From-SVN: r246607
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr80163.c [new file with mode: 0644]
gcc/varasm.c