[Bug c/40909] stat produces incorrect result with w64-mingw under -O2

sezeroz at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 31 18:08:00 GMT 2009



------- 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



More information about the Gcc-bugs mailing list