[LLVMbugs] [Bug 344] NEW: C Backend generates incorrect structure defintion

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed May 26 08:58:21 PDT 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=344

           Summary: C Backend generates incorrect structure defintion
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: criswell at uiuc.edu


The attached file, when run through the C Backend, generates C code that cannot
be compiled.

The offending type is %struct._fopen, which gets compiled into this (note the
missing struct keyword for field2):

struct l_struct_2E__fopen {
  signed char *field0;
  signed char *field1;
  *field2 {
  int field0[10];
};
  int field3;
};

Removing lines from the input "fixes" the output, and it looks something like this:

struct l_struct_2E__fopen {
  signed char *field0;
  signed char *field1;
  struct l_unnamed *field2;
  int field3;
};

struct l_unnamed {
  int field0[10];
};



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