summaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-05 19:52:08 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-05 19:52:08 +0000
commitdcf7024cca21bc0205e541c429b69b27b8095aae (patch)
tree6e448fc21f38971cea77de1235e228d4af822d4b /gcc/omp-low.c
parent940bb42d7c8219dc2c6a15157e01b6254d96d919 (diff)
downloadgcc-dcf7024cca21bc0205e541c429b69b27b8095aae.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c4
1 files changed, 1 insertions, 3 deletions
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