re PR c/50565 (initializer element is not computable at load time)
authorJoseph Myers <joseph@codesourcery.com>
Wed, 12 Oct 2011 11:56:03 +0000 (12:56 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 12 Oct 2011 11:56:03 +0000 (12:56 +0100)
commita2d5091a51e15ef05478b68013ca3df36010a7a2
treef9da918ccf98c870d0761a3947118511d0015444
parent58e9ddb14d9930d4b9fc80549031231605f4f228
re PR c/50565 (initializer element is not computable at load time)

PR c/50565
* convert.c (convert_to_integer): Do not narrow operands of
pointer subtraction.

testsuite:
* gcc.c-torture/compile/pr50565-1.c,
gcc.c-torture/compile/pr50565-2.c: New tests.

From-SVN: r179845
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr50565-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr50565-2.c [new file with mode: 0644]