This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/48440] [4.7 Regression] FAIL: gcc.c-torture/compile/labels-3.c


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]