This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50565] [4.5/4.6/4.7 Regression] initializer element is not computable at load time
- From: "jsm28 at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Oct 2011 11:58:52 +0000
- Subject: [Bug c/50565] [4.5/4.6/4.7 Regression] initializer element is not computable at load time
- Auto-submitted: auto-generated
- References: <bug-50565-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50565
--- Comment #7 from Joseph S. Myers <jsm28 at gcc dot gnu.org> 2011-10-12 11:58:52 UTC ---
Author: jsm28
Date: Wed Oct 12 11:58:47 2011
New Revision: 179847
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179847
Log:
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.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/compile/pr50565-1.c
branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/compile/pr50565-2.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/convert.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog