This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/45831] 0 = 10 (with -O0, 0 = 0 with -O1, but 10 = 10 expected)
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 30 Sep 2010 11:33:55 +0000
- Subject: [Bug c/45831] 0 = 10 (with -O0, 0 = 0 with -O1, but 10 = 10 expected)
- Auto-submitted: auto-generated
- References: <bug-45831-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45831
--- Comment #11 from Andreas Schwab <schwab@linux-m68k.org> 2010-09-30 11:33:54 UTC ---
-1 works for any integer type, ~0 only works for unsigned (int|short|char).