[LLVMbugs] [Bug 10623] New: clang should support -Wlarger-than-num warning, like gcc
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 9 14:56:10 PDT 2011
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: unassignedclangbugs at nondot.org
ReportedBy: sean at rogue-research.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list