--- Comment #3 from bkoz at gcc dot gnu dot org 2008-04-14 22:48 ---
Wow. Confirmed. This does not happen at -O2 with gcc-4.1.2
However, on gcc-4.3.0 branch:
$bld/H-x86-gcc-4_3-branch.20080227/bin/g++ -O2 -S -march=i386 testatomic.cc
gives:
.file testatomic.cc
--- Comment #4 from bkoz at gcc dot gnu dot org 2008-04-14 23:54 ---
Subject: Bug 35816
Author: bkoz
Date: Mon Apr 14 23:53:15 2008
New Revision: 134297
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=134297
Log:
2008-04-14 Benjamin Kosnik [EMAIL PROTECTED]
PR
--- Comment #5 from bkoz at gcc dot gnu dot org 2008-04-15 00:26 ---
Subject: Bug 35816
Author: bkoz
Date: Tue Apr 15 00:25:45 2008
New Revision: 134305
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=134305
Log:
2008-04-14 Benjamin Kosnik [EMAIL PROTECTED]
PR
--- Comment #6 from bkoz at gcc dot gnu dot org 2008-04-15 00:26 ---
fixed in trunk and on gcc-4_3-branch
--
bkoz at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #2 from oblivian at users dot sourceforge dot net 2008-04-03
20:45 ---
Ok so the gcc/g++ i build has optimization on by default. The configuration
scripts don't seem to take this into account and the call to CXX for the atomic
check is optimizing away the check in the