[LLVMbugs] [Bug 3268] New: Attributes order, it is meaningful and clang loses it.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Dec 28 09:45:27 PST 2008


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

           Summary: Attributes order, it is meaningful and clang loses it.
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bolzoni at cs.unipr.it
                CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it


It is critical in presence of __asm__ attribute, the __asm__ attribute must be
first.
Instead in this code:
---->
typedef unsigned long size_t;
extern int strerror_r(int __errnum, char *__buf, size_t __buflen)
  __asm__ ("" "__xpg_strerror_r")
  __attribute__ ((__nothrow__))
  __attribute__ ((__nonnull__ (2)));
----<
The asm attribute comes out last.


-- 
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