------- Comment #5 from css20 at mail dot ru 2009-04-12 19:35 ------- I see this bug in compiler driver is already known (http://sourceforge.net/forum/forum.php?thread_id=3091795&forum_id=723797), it works only with "-O0". I can't found report about this bug in database.. does it exists ?
> Well, on 4.4 branch there was a patch introducing the winsup link, which got > necessary for building libstdc++. We solve this by setting up in gcc's source > tree a symbolic link "winsup" pointing to the sysroot (prefix) directory. Symbolic link "winsup" to prefix directory with mingw-w64 runtime headers not works properly with current gcc 4.4.0 snapshot.. for correct build you must *temporary* remove file "stddef.h" from ${YOUR_PREFIX}/x86_64-pc-mingw32/include because it conflicts with same file in libstdc++ build directory. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39738