]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/50565 (initializer element is not computable at load time)
authorJoseph Myers <joseph@codesourcery.com>
Wed, 12 Oct 2011 11:58:47 +0000 (12:58 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 12 Oct 2011 11:58:47 +0000 (12:58 +0100)
commiteef6b15c13b4f37fd26d9dd72b7243ef68c7bbfe
tree43d10a0d6c021997a4275f6de3825784e13fbf2c
parent05418206f7db1bd6f625cf2f1ed869aad968bc24
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: r179847
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]