]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR tree-opt/52242
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Mar 2012 19:52:08 +0000 (19:52 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Mar 2012 19:52:08 +0000 (19:52 +0000)
Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
* omp-low.c (expand_omp_atomic): Assume anything aligned to
BIGGEST_ALIGNMENT is aligned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184955 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/omp-low.c

index c9fa1521ef34db09b808cd193738b0eed601a741..936a07ec5a269ec06f4cf6b6959ad3b3dcd9444a 100644 (file)
@@ -1,3 +1,10 @@
+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...
index db715947df0038676d067bb0d1d0d195a70b6db0..82ca4fd69cda49342ef5a9f850ed8a7c9f04e424 100644 (file)
@@ -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