[LLVMbugs] [Bug 10102] New: Warn on attribute mismatch between prototype and body

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 8 14:33:29 PDT 2011


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

           Summary: Warn on attribute mismatch between prototype and body
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: joerg at NetBSD.org
                CC: llvmbugs at cs.uiuc.edu


clang doesn't warn for the following when compiling for i386:

__attribute__((__regparm__(3))) int test(int);

int test(int a)
{
    return a;
}

GCC warns on i386 and silently accepts it on amd64. The GCC behavior is more
useful here IMO.

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