public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12826] New: Optimizer removes reference through volatile pointer
@ 2003-10-29 14:52 lee at bustech dot com
  2003-10-29 15:04 ` [Bug c/12826] " lee at bustech dot com
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: lee at bustech dot com @ 2003-10-29 14:52 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12826

           Summary: Optimizer removes reference through volatile pointer
           Product: gcc
           Version: 2.96 (redhat)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lee at bustech dot com
                CC: gcc-bugs at gcc dot gnu dot org

(Using standard gcc shipped with RedHat 7.3 Linux)

$ gcc -v -save-temps -O -S t.c
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -lang-c -v -D__GNUC__=2
-D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__
-D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__OPTIMIZE__
-Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ t.c t.i
GNU CPP version 2.96 20000731 (Red Hat Linux 7.3 2.96-113) (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1 t.i -quiet -dumpbase t.c -O
-version -o t.s
GNU C version 2.96 20000731 (Red Hat Linux 7.3 2.96-113) (i386-redhat-linux)
compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.3 2.96-113).

Expected behavior:
    Should not optimize out the read of *sp in the loop.
Actual behavior:
    Doesn't read *sp in the loop.


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2004-01-27 13:11 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-29 14:52 [Bug c/12826] New: Optimizer removes reference through volatile pointer lee at bustech dot com
2003-10-29 15:04 ` [Bug c/12826] " lee at bustech dot com
2003-10-29 15:19 ` falk at debian dot org
2003-10-29 16:16 ` bangerth at dealii dot org
2003-10-29 16:16 ` lee at bustech dot com
2003-10-29 16:28 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-10-29 16:43 ` lee at bustech dot com
2003-10-29 17:12 ` bangerth at dealii dot org
2003-10-29 17:14 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-11-09  7:08 ` rth at gcc dot gnu dot org
2003-11-09 18:50 ` [Bug optimization/12826] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-11-09 18:59 ` pinskia at gcc dot gnu dot org
2003-11-29 21:35 ` pinskia at gcc dot gnu dot org
2003-12-01 14:24 ` lee at bustech dot com
2003-12-20  4:10 ` [Bug optimization/12826] [3.3/3.4 " pinskia at gcc dot gnu dot org
2004-01-10 22:59 ` pinskia at gcc dot gnu dot org
2004-01-12 16:25 ` cvs-commit at gcc dot gnu dot org
2004-01-12 16:32 ` cvs-commit at gcc dot gnu dot org
2004-01-12 17:29 ` [Bug optimization/12826] [3.3 " pinskia at gcc dot gnu dot org
2004-01-21  2:41 ` cvs-commit at gcc dot gnu dot org
2004-01-21  2:42 ` gdr at gcc dot gnu dot org
2004-01-27 13:11 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).