[Bug libstdc++/40654] [C++0x] atomic.cc: 'd' is used uninitialized warning

2009-10-19 Thread bkoz at gcc dot gnu dot org


--- Comment #7 from bkoz at gcc dot gnu dot org  2009-10-19 16:46 ---

In for gcc-4.4.3


-- 

bkoz at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.4.3


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



[Bug libstdc++/40654] [C++0x] atomic.cc: 'd' is used uninitialized warning

2009-10-17 Thread bkoz at gcc dot gnu dot org


--- Comment #6 from bkoz at gcc dot gnu dot org  2009-10-18 03:30 ---
Subject: Bug 40654

Author: bkoz
Date: Sun Oct 18 03:30:03 2009
New Revision: 152965

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152965
Log:
2009-10-16  Benjamin Kosnik  

* include/c_compatibility/stdatomic.h: Include cstdatomic if
__cplusplus.

2009-10-15  Benjamin Kosnik  

PR libstdc++/40654
PR libstdc++/40826
* src/atomic.cc (atomic_flag_test_and_set_explicit): Add
static_cast from base to derived.
(atomic_flag_clear_explicit): Same.
* include/bits/atomic_2.h (__atomic2::atomic_flag): Public derivation.
Remove value type constructor.
* include/bits/atomic_0.h (__atomic0::atomic_flag): Same.
* include/std/future (_Future_state): Use ATOMIC_FLAG_INIT to
initialized the atomic_flag member.

Added:
   
branches/gcc-4_4-branch/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/
   
branches/gcc-4_4-branch/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.c
   
branches/gcc-4_4-branch/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc
   
branches/gcc-4_4-branch/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/1.cc
Modified:
branches/gcc-4_4-branch/libstdc++-v3/ChangeLog
branches/gcc-4_4-branch/libstdc++-v3/include/bits/atomic_0.h
branches/gcc-4_4-branch/libstdc++-v3/include/bits/atomic_2.h
branches/gcc-4_4-branch/libstdc++-v3/include/c_compatibility/stdatomic.h
branches/gcc-4_4-branch/libstdc++-v3/src/atomic.cc


-- 


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



[Bug libstdc++/40654] [C++0x] atomic.cc: 'd' is used uninitialized warning

2009-10-16 Thread sezeroz at gmail dot com


--- Comment #5 from sezeroz at gmail dot com  2009-10-16 19:49 ---
Any chance for a backport to 4.4 ?


-- 


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



[Bug libstdc++/40654] [C++0x] atomic.cc: 'd' is used uninitialized warning

2009-10-16 Thread bkoz at gcc dot gnu dot org


--- Comment #4 from bkoz at gcc dot gnu dot org  2009-10-16 07:47 ---
Subject: Bug 40654

Author: bkoz
Date: Fri Oct 16 07:47:33 2009
New Revision: 152895

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152895
Log:
2009-10-15  Benjamin Kosnik  

PR libstdc++/40654
PR libstdc++/40826
* src/atomic.cc (atomic_flag_test_and_set_explicit): Add
static_cast from base to derived.
(atomic_flag_clear_explicit): Same.
* include/bits/atomic_2.h (__atomic2::atomic_flag): Public derivation.
Remove value type constructor.
* include/bits/atomic_0.h (__atomic0::atomic_flag): Same.
* include/std/future (_Future_state): Use ATOMIC_FLAG_INIT to
initialized the atomic_flag member.


Added:
trunk/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/
trunk/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.c
trunk/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/atomic_0.h
trunk/libstdc++-v3/include/bits/atomic_2.h
trunk/libstdc++-v3/include/std/future
trunk/libstdc++-v3/src/atomic.cc


-- 


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



[Bug libstdc++/40654] [C++0x] atomic.cc: 'd' is used uninitialized warning

2009-07-22 Thread paolo dot carlini at oracle dot com


--- Comment #3 from paolo dot carlini at oracle dot com  2009-07-22 14:28 
---
See also PR40825.


-- 


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