This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42688] gcc 4.3.3 with -O2 thinks a often non-zero expression is always zero
- From: "mnemo at minimum dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2010 15:34:36 -0000
- Subject: [Bug c/42688] gcc 4.3.3 with -O2 thinks a often non-zero expression is always zero
- References: <bug-42688-17484@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from mnemo at minimum dot se 2010-01-17 15:34 -------
Using gcc 4.4.1, I see this:
1. "gcc -O2 sqlite3.c" repros the bug
2. "gcc -E sqlite3.c > pp.c" followed by "gcc -O2 pp.c" does _NOT_ repro the
bug
However, still using gcc 4.4.1, if I do:
1. "gcc -O2 -E sqlite3.c > ppo.c" followed by "gcc -O2 ppo.c" does repro the
bug
Finally, I also tried to upgrade to Ubuntu Lucid today which gave me gcc 4.4.3
and there I can't get the bug to repro at all.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42688