http://llvm.org/bugs/show_bug.cgi?id=9448

           Summary: likely dragonegg wrong code bug
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


This is seen on x64 Linux, using LLVM and Dragonegg from today.

$ gcc-4.5 -O0 -fplugin=/home/regehr/z/compiler-source/dragonegg/dragonegg.so
small.c
$ ./a.out
g_70 = 1
$ gcc-4.5 -O1 -fplugin=/home/regehr/z/compiler-source/dragonegg/dragonegg.so
small.c
$ ./a.out
g_70 = 0
$ clang -O0 small.c
$ ./a.out
g_70 = 1
$ cat small.c
struct S0 {
   signed f0 : 10;
   signed f1 : 21;
};

struct S0 g_70 = {0, 0};

int printf(const char *format, ...);

int main (int argc, char* argv[])
{
    struct S0 l_464 = {1,1};
    g_70 = l_464;
    printf("g_70 = %d\n", g_70.f0);
    return 0;
}

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to