[LLVMbugs] [Bug 9448] New: likely dragonegg wrong code bug

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 9 23:07:57 PST 2011


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: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list