Commit fec2ef4b by Richard Henderson Committed by Richard Henderson

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
parent 7b45b59b
2011-11-26 Richard Henderson <rth@redhat.com>
* omp-low.c (expand_omp_atomic): Assume anything aligned to
BIGGEST_ALIGNMENT is aligned.
2011-11-26 Richard Henderson <rth@redhat.com>
* config/m68k/m68k.md (UNSPECV_CAS_1, UNSPECV_CAS_2): New.
(UNSPECV_TAS_1, UNSPECV_TAS_2): New.
(I): New mode iterator.
......@@ -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
......
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