[LLVMbugs] [Bug 329] NEW: [llvmgcc] type names are not emitted for structure typedefs

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Apr 23 12:07:49 PDT 2004


           Summary: [llvmgcc] type names are not emitted for structure
           Product: tools
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org

The C front-end is not emitting LLVM type names for typedefs of structures. 
This is usually fine (because structs usually also have a tag), but causes us to
not emit names at all for certain structs, defined like this:

typedef struct {
        double W, X, Y, Z;

void test(FOOTY* A) {}

Missing the symbolic type name makes the LLVM code unreadable for some programs
like 188.ammp (and others) which have large structures defined like this.

We currently compile this testcase into:

void %test({ double, double, double, double }* %A) {
        ret void

Where we would like to see:

void %test(%FOOTY* %A) {
        ret void


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