[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-bugs
Subject:    [LLVMbugs] [Bug 12708] New: In microsoft, support __fastcall on functions without prototype
From:       bugzilla-daemon () llvm ! org
Date:       2012-04-30 21:54:21
Message-ID: bug-12708-206 () http ! llvm ! org/bugs/
[Download RAW message or body]

http://llvm.org/bugs/show_bug.cgi?id=12708

             Bug #: 12708
           Summary: In microsoft, support __fastcall on functions without
                    prototype
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs@nondot.org
        ReportedBy: nicolasweber@gmx.de
                CC: llvmbugs@cs.uiuc.edu
    Classification: Unclassified


handleFunctionTypeAttr in SemaType.cpp


C:\src\chrome\src>type test.c
void __fastcall f() {
}

C:\src\chrome\src>cl /c test.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

test.c

C:\src\chrome\src>..\..\llvm-build\bin\Release\clang.exe -c test.c
test.c:1:6: error: function with no prototype cannot use fastcall calling
convention
void __fastcall f() {
     ^
1 error generated.


This is used in lzma_sdk if _MSC_VER is defined.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic