This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48440] [4.7 Regression] FAIL: gcc.c-torture/compile/labels-3.c
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 5 Apr 2011 11:05:19 +0000
- Subject: [Bug middle-end/48440] [4.7 Regression] FAIL: gcc.c-torture/compile/labels-3.c
- Auto-submitted: auto-generated
- References: <bug-48440-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48440
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-05 11:02:50 UTC ---
- static const short int ar[2] = {0, (short unsigned int) &l2 - (short
unsigned int) &l1};
+ static const short int ar[2] = {0, (short int) ((short unsigned int) (int)
&l2 - (short unsigned int) (int) &l1)};
this transformation is completely reasonable for any pointer size. The
bug must be elsewhere and latent.