[LLVMbugs] [Bug 8267] New: volatile structs are broken!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 30 20:13:15 PDT 2010


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

           Summary: volatile structs are broken!
           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, chenyang at cs.utah.edu


regehr at john-home:~$ clang -O small.c -S -o -
        .file   "small.c"
        .text
        .globl  func_1
        .align  16, 0x90
        .type   func_1, at function
func_1:
        pushl   %ebp
        movl    %esp, %ebp
        popl    %ebp
        ret
.Ltmp0:
        .size   func_1, .Ltmp0-func_1

        .type   g_18, at object
        .data
        .globl  g_18
        .align  8
g_18:
        .long   4294967290
        .size   g_18, 4


        .section        .note.GNU-stack,"", at progbits
regehr at john-home:~$ cat small.c
struct S1
{
  int f0;
};

volatile struct S1 g_18 = { -6 };

void
func_1 (void)
{
  g_18 = g_18;
}
regehr at john-home:~$ clang -v
clang version 2.9 (trunk 115236)
Target: i386-pc-linux-gnu
Thread model: posix

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