http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55492
--- Comment #9 from Andrew Macleod <amacleod at redhat dot com> 2012-12-14 15:32:52 UTC --- Took me a second.. I presume you meant that expand_mem_thread_fence doesn't emit anything for RELAXED mode... Yes, since __atomic_store has already been verified by expand_builtin_atomic_store() to only be one of the 3 valid cases, there should not be a need for the if statement guarding the expand_mem_thread_fence.