https://llvm.org/bugs/show_bug.cgi?id=27889
Bug ID: 27889 Summary: "function with no prototype cannot use ... calling convention" for function with prototype (win32) Product: clang Version: unspecified Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: denis.bri...@intel.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified $ cat tttt.c int __stdcall sfoo(); int __fastcall ffoo(); $ clang -c -m32 tttt.c tttt.c:1:15: warning: function with no prototype cannot use the stdcall calling convention [-Wmissing-prototype-for-cc] int __stdcall sfoo(); ^ tttt.c:2:16: error: function with no prototype cannot use the fastcall calling convention int __fastcall ffoo(); ^ 1 warning and 1 error generated. The diagnostics emitted against prototype itself. 64 bit compiles with no messages. This is very similar to #20386. Thanks, Denis ===== Software Engineer Intel Compiler Team -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs