public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/36081]  New: gcc optimizations and threads (pthread)
@ 2008-04-29 18:52 snes2002 at freenet dot de
  2008-04-29 18:55 ` [Bug driver/36081] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: snes2002 at freenet dot de @ 2008-04-29 18:52 UTC (permalink / raw)
  To: gcc-bugs

gcc version 4.2.1 (Debian 4.2.1-3)
System: debian-installation from knoppix 5.1.1

When optimizations are turned on (-O, -O1, -O2, -O3),
two or more threads don't recognize when the value of a global variable
changes.
It doesn't matter if it's a global variable or a pointer to a local variable.
The change of its value by thread no 1 will not be recognized by thread no 2.


-- 
           Summary: gcc optimizations and threads (pthread)
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: snes2002 at freenet dot de


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


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

end of thread, other threads:[~2008-05-03 11:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-29 18:52 [Bug driver/36081] New: gcc optimizations and threads (pthread) snes2002 at freenet dot de
2008-04-29 18:55 ` [Bug driver/36081] " pinskia at gcc dot gnu dot org
2008-04-29 18:55 ` snes2002 at freenet dot de
2008-04-29 18:56 ` snes2002 at freenet dot de
2008-04-29 18:57 ` snes2002 at freenet dot de
2008-04-29 18:58 ` snes2002 at freenet dot de
2008-04-29 19:00 ` snes2002 at freenet dot de
2008-04-29 19:06 ` snes2002 at freenet dot de
2008-04-29 19:12 ` pinskia at gcc dot gnu dot org
2008-04-30 12:26 ` snes2002 at freenet dot de
2008-05-03 10:27 ` snes2002 at freenet dot de
2008-05-03 11:04 ` rguenth 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).