This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43794] miscompile semantically equivalent C source files using -O2
- From: "wuwei08 at iscas dot ac dot cn" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Apr 2010 08:09:43 -0000
- Subject: [Bug c/43794] miscompile semantically equivalent C source files using -O2
- References: <bug-43794-19053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from wuwei08 at iscas dot ac dot cn 2010-04-19 08:09 -------
Created an attachment (id=20415)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20415&action=view)
source files to trigger this bug
Source files to trigger this bug.it is a tar file,include
MTest-1.c,MTest-1.i,MTest-7.c,and MTest-7.i.
command steps:
tar xf bug43794.tar
gcc-4.5 -O2 MTest-1.c -o mt1
./mt1 # generate MTest-1.out
gcc-4.5 -O2 MTest-7.c -o mt7
./mt7 # generate MTest-7.out
diff MTest-1.out MTest-7.out
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43794