------- Comment #15 from sezeroz at gmail dot com 2009-07-31 18:07 ------- Created an attachment (id=18279) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18279&action=view) [ __attribute__((optimize("0"))) difference ]
Hmm, __attribute__((optimize("0"))) does seem to disable inlining and the code is linked to libmingwex.a version of non-inlined stat(). [Attached the diff of *.s files generated without and with __attribute__((optimize("0"))) added at -O3. ] The thing is, the non-inlined code is the same and why does it not have the issue... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40909