http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49826
Summary: [4.7 Regression] Symbols are not decorated with attribute stdcall and -mrtd Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: d.g.gorbac...@gmail.com Target: i686-pc-mingw32 Code: extern void __attribute__((stdcall)) bar(int); void foo(void) { bar(0); } When compiled with gcc-4.6 -mrtd call _bar@4 With gcc-4.7 -mrtd call _bar