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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to