[LLVMbugs] [Bug 9027] New: volatile struct bug

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 21 17:54:51 PST 2011


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

           Summary: volatile struct 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, chenyang at cs.utah.edu


The struct member needs to be loaded and stored.

regehr at home:~$ clang -v

clang version 2.9 (trunk 123968)
Target: i386-pc-linux-gnu
Thread model: posix

regehr at home:~$ clang -O vol.c -S -o - -fomit-frame-pointer

foo:                                    # @foo
    ret

regehr at home:~$ cat vol.c

struct s2 {
  volatile int x;
};

struct s2 s;

void foo (void) {
  s = s;
}

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