[llvm-bugs] [Bug 27889] New: "function with no prototype cannot use ... calling convention" for function with prototype (win32)
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu May 26 04:51:39 PDT 2016
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: unassignedclangbugs at nondot.org
Reporter: denis.briltz at intel.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160526/42a0fdea/attachment.html>
More information about the llvm-bugs
mailing list