[LLVMbugs] [Bug 604] NEW: [llvm-gcc] Darwin target description incorrect for some struct layouts

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 21 18:44:47 PDT 2005


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

           Summary: [llvm-gcc] Darwin target description incorrect for some
                    struct layouts
           Product: tools
           Version: 1.0
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


Our llvm-gcc front-end does not compute the correct size for the Z structure in this testcase:

----
typedef struct {
  //X   x;
  double X;
  int B;
} Y;

struct Z {
  int A;
  Y B;
  int C;
};

void Size(int *YS, int *ZS) { *YS = sizeof(Y); *ZS = sizeof(Z); }
---

It sets *ZS to 32, whereas GCC 3.3 on Darwin sets it to 24.

This is similar to Bug 603, but the problem is in the GCC snapshot we are using, not the llvm part of 
llvm-gcc.

-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