This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40909] GCC mis-optimizes GDB
- From: "ppluzhnikov at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2009 14:03:08 -0000
- Subject: [Bug c/40909] GCC mis-optimizes GDB
- References: <bug-40909-17355@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ppluzhnikov at google dot com 2009-07-30 14:03 -------
Created an attachment (id=18272)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18272&action=view)
pre-processed t.c
Some answers:
The -fno-strict-aliasing does help:
/usr/local/mingw-w64/bin/x86_64-w64-mingw32-gcc -g t.c -O2
-fno-strict-aliasing && ./a.exe
mode = 81ff
> which revision of mingw-w64-crt and mingw-w64-headers the reporter used
For the record, I am just following up on GDB bug report from here:
http://sourceware.org/ml/gdb-patches/2009-07/msg00634.html
I did not build mingw-w64 myself, but used a snapshot build from here:
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/mingw-w64-bin_i686-cygwin-1.5.25-15_20090726.tar.bz2/download
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40909