Commit 4999c62c by Richard Henderson Committed by Richard Henderson

re PR tree-optimization/52242 (libgomp.c/atomic-2.c failure on s390x)

PR tree-opt/52242
	Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
	* omp-low.c (expand_omp_atomic): Assume anything aligned to
	BIGGEST_ALIGNMENT is aligned.

From-SVN: r184955
parent 95a6dda5
2012-03-05 Richard Henderson <rth@redhat.com> 2012-03-05 Richard Henderson <rth@redhat.com>
PR tree-opt/52242
Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
* omp-low.c (expand_omp_atomic): Assume anything aligned to
BIGGEST_ALIGNMENT is aligned.
2012-03-05 Richard Henderson <rth@redhat.com>
* config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move... * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
* config/sh/sh.c: ... here. * config/sh/sh.c: ... here.
......
...@@ -5504,9 +5504,7 @@ expand_omp_atomic (struct omp_region *region) ...@@ -5504,9 +5504,7 @@ expand_omp_atomic (struct omp_region *region)
unsigned int align = TYPE_ALIGN_UNIT (type); unsigned int align = TYPE_ALIGN_UNIT (type);
/* __sync builtins require strict data alignment. */ /* __sync builtins require strict data alignment. */
/* ??? Assume BIGGEST_ALIGNMENT *is* aligned. */ if (exact_log2 (align) >= index)
if (exact_log2 (align) >= index
|| align * BITS_PER_UNIT >= BIGGEST_ALIGNMENT)
{ {
/* Atomic load. */ /* Atomic load. */
if (loaded_val == stored_val if (loaded_val == stored_val
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment