From: Richard Henderson Date: Mon, 5 Mar 2012 19:52:08 +0000 (-0800) Subject: re PR tree-optimization/52242 (libgomp.c/atomic-2.c failure on s390x) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4999c62c838dde11b309da746a563b684fe325ea;p=gcc.git re PR tree-optimization/52242 (libgomp.c/atomic-2.c failure on s390x) PR tree-opt/52242 Revert: 2011-11-26 Richard Henderson * omp-low.c (expand_omp_atomic): Assume anything aligned to BIGGEST_ALIGNMENT is aligned. From-SVN: r184955 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9fa1521ef3..936a07ec5a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2012-03-05 Richard Henderson + + PR tree-opt/52242 + Revert: 2011-11-26 Richard Henderson + * omp-low.c (expand_omp_atomic): Assume anything aligned to + BIGGEST_ALIGNMENT is aligned. + 2012-03-05 Richard Henderson * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move... diff --git a/gcc/omp-low.c b/gcc/omp-low.c index db715947df0..82ca4fd69cd 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -5504,9 +5504,7 @@ expand_omp_atomic (struct omp_region *region) unsigned int align = TYPE_ALIGN_UNIT (type); /* __sync builtins require strict data alignment. */ - /* ??? Assume BIGGEST_ALIGNMENT *is* aligned. */ - if (exact_log2 (align) >= index - || align * BITS_PER_UNIT >= BIGGEST_ALIGNMENT) + if (exact_log2 (align) >= index) { /* Atomic load. */ if (loaded_val == stored_val