[LLVMbugs] [Bug 5310] New: [GCC Compatibility] Support stdcall/ fastcall attribute on function types

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Oct 26 16:13:14 PDT 2009


           Summary: [GCC Compatibility] Support stdcall/fastcall attribute
                    on function types
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu

Currently, our stdcall/fastcall attribute support is limited to function
declarations. We should also support stdcall/fastcall attributes applied to
function types, so that we can form function pointers that use a specific
calling convention. 

At the moment, we warn about

  typedef void (__attribute__((stdcall)) * callback)(int, int); 


stdcall.c:1:30: warning: 'stdcall' attribute only applies to function types
typedef void (__attribute__((stdcall)) * callback)(int, int);

rather than properly handling the attribute.

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.

More information about the llvm-bugs mailing list