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

           Summary: clang should support -Wlarger-than-num warning, like
                    gcc
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Consider the following C99:

int main (void)
{
    int foo[300000];

    return 0;
}

compiled with gcc:

builder7:~ builder$ gcc -Wlarger-than-300 /Users/builder/Desktop/test.c 
/Users/builder/Desktop/test.c: In function ‘main’:
/Users/builder/Desktop/test.c:3: warning: size of ‘foo’ is 1200000 bytes

compiled with clang there is no warning at all.

Previously, clang warned that the warning flaw was unknown, making swapping gcc
and clang usage with the same warning flags a PITA.  rdar://6970318 requested
that clang support or ignore the flag.  In Options.td, I see the flag is now
silently ignored.  Better.  But I'd like to see this warning supported.

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