[LLVMbugs] [Bug 1417] NEW: llvm-gcc packing empty structs

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon May 14 17:18:08 PDT 2007


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

           Summary: llvm-gcc packing empty structs
           Product: tools
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


This C code:

struct { } *X;

compiles into:

       %struct.anon = type <{  }>
@X = weak global %struct.anon* null             ; <%struct.anon**> [#uses=0]


I would expect:

       %struct.anon = type {  }
@X = weak global %struct.anon* null             ; <%struct.anon**> [#uses=0]

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list