From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28537 invoked by alias); 29 Apr 2008 18:55:50 -0000 Received: (qmail 26471 invoked by uid 48); 29 Apr 2008 18:54:52 -0000 Date: Tue, 29 Apr 2008 18:55:00 -0000 Message-ID: <20080429185452.26470.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug driver/36081] gcc optimizations and threads (pthread) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg02089.txt.bz2 ------- Comment #2 from pinskia at gcc dot gnu dot org 2008-04-29 18:54 ------- This is correct behavior, you need either use volatile or use locks. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36081