[LLVMbugs] [Bug 9411] New: Structs by value break CBackend

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 5 16:57:28 PST 2011


           Summary: Structs by value break CBackend
           Product: clang
           Version: 2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jwatte at gmail.com
                CC: llvmbugs at cs.uiuc.edu

The clang front-end generates types like "i800" to represent a struct of size
100 bytes when that struct is passed by value.

struct foo {
  int x;
  char y;

  struct foo a;
  struct foo b;
  b = a; // generates iXXX type reference

This is a problem because the CBackend, for example, doesn't like non-native
integer types.
It ought to be able to generate a memcpy or similar instead.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list