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: "paul dot woegerer at nsc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2004 07:26:59 -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 paul dot woegerer at nsc dot com 2004-08-19 07:26 -------
(In reply to comment #1)
> Confirmed.
>
> Remarks:
> * This only happens with -O0.
> * The return value is not even 0 or 2, but 16.
>
With -O0 i also get return value 16. But with
-O2, -O3 and -Os i get 164 as return value.
I used GCC 3.4.1 in the following configuration:
Reading specs from /usr/local/gcc-3.4.1-native/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --enable-languages=c,c++
--prefix=/usr/local/gcc-3.4.1-native
Thread model: posix
gcc version 3.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17078