This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/17078] [3.4 regression] Jump into if(0)-substatement fails
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2004 10:21:44 -0000
- Subject: [Bug rtl-optimization/17078] [3.4 regression] Jump into if(0)-substatement fails
- References: <20040818110543.17078.paul.woegerer@nsc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-19 10:21 -------
> With -O0 i also get return value 16. But with
> -O2, -O3 and -Os i get 164 as return value.
Hmm. With the C frontend I only get wrong numbers with -O0.
With the C++ frontend I get wrong numbers for all optimizations:
-O0 -O1 -O2 -O3 -Os. (I mostly get zeros, but that's not a
contradiction to the 164 mentioned above, since there's probably
some uninitialized memory involved).
Anyway, GCC is at fault here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17078