[LLVMbugs] [Bug 533] NEW: llvm-gcc crashes generating code for C union

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Mar 2 08:27:01 PST 2005


           Summary: llvm-gcc crashes generating code for C union
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: criswell at uiuc.edu

llvm-gcc crashes on the attached code.

I believe the problem is two-fold:

1. The code that creates LLVM struct types for C unions expects the leading
member to have static size expressed as an integer constant.  That doesn't
appear to happen for the attached code.

2. llvm-gcc does not handle CEIL_DIV_EXPR, which I am guessing is used to
calculate the array size in the union.

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