diff options
author | Richard Henderson <rth@redhat.com> | 2011-11-26 16:01:04 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-11-26 16:01:04 -0800 |
commit | fec2ef4b687d67253426e011975c3defa7e52f29 (patch) | |
tree | 4166641a79717454183702f3b0705dafe61b5668 /gcc/omp-low.c | |
parent | 7b45b59bc5f9bd799a719c68db28ea0f5b5fe2c9 (diff) | |
download | gcc-fec2ef4b687d67253426e011975c3defa7e52f29.zip gcc-fec2ef4b687d67253426e011975c3defa7e52f29.tar.gz gcc-fec2ef4b687d67253426e011975c3defa7e52f29.tar.bz2 |
omp-low: Assume anything aligned to BIGGEST_ALIGNMENT is aligned.
* omp-low.c (expand_omp_atomic): Assume anything aligned to
BIGGEST_ALIGNMENT is aligned.
From-SVN: r181748
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index a4bfb84..4e1c2ba 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -5501,7 +5501,9 @@ expand_omp_atomic (struct omp_region *region) unsigned int align = TYPE_ALIGN_UNIT (type); /* __sync builtins require strict data alignment. */ - if (exact_log2 (align) >= index) + /* ??? Assume BIGGEST_ALIGNMENT *is* aligned. */ + if (exact_log2 (align) >= index + || align * BITS_PER_UNIT >= BIGGEST_ALIGNMENT) { /* Atomic load. */ if (loaded_val == stored_val |