As suggested by Hans-Peter this patch unifies logic for emitting pre- and post-barriers for atomic operations across Alpha, ARM, MIPS and TileGX. Currently these targets use copy-pasted switch statements and this patch cleans that up.
I'm going to test this patch on MIPS, and I would appreciate target maintainers to cast a close look at the changes for their targets. The changes are simple, but you can never eliminate typo mistakes. Thank you, -- Maxim Kuvyrkov CodeSourcery / Mentor Graphics
0001-Unify-emit_-pre-post-_atomic_barrier-across-Alpha-AR.patch
Description: Binary data