------- Comment #4 from sje at cup dot hp dot com 2010-03-09 23:49 ------- Yes, I think this is clearly a bug in the IA64 definition of sync_compare_and_swap. I think the fix is swapping the two instructions being generated by the IA64 sync_compare_and_swap instruction. (cmpxchg4.rel followed by a memory fence instead of a memory fence followed by cmpxchg4.rel).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42869