[LLVMbugs] [Bug 3716] New: Implement warning on poorly packed structures
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Mar 3 18:25:03 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3716
Summary: Implement warning on poorly packed structures
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
It would be nice if clang had a warning for structures which could be packed
better to save space.
For example:
--
struct s0 {
int32 a;
int16 b;
int32 c;
int16 d;
};
--
could be repacked to take 12 bytes instead of 16.
--
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