This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/54006] __atomic_always_lock_free inconsistent with __GCC_ATOMIC_INT_LOCK_FREE et al.


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

--- Comment #2 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2012-07-20 04:06:41 UTC ---
FWIW, cpp_atomic_builtins is called before the target TARGET_INIT_LIBFUNCS is
called (at least on the 4.7 branch) so using can_compare_and_swap_p as the / in
the common function (as is needed) requires moving some initialization bits to
avoid a SEGV.  There be dragons there.  (Not that they shouldn't be slayed,
just beware.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]