Comments

This is a rather unusual situation where a pragma Shared is put on a packed
array. In this case, we generate wrong code for array accesses on BE targets.
Tested on x86_64-suse-linux, applied on the mainline.
2013-08-13 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils2.c (build_atomic_load): Do a mere view-conversion
to the original type before converting to the result type.
(build_atomic_store): First do a conversion to the original type before
view-converting to the effective type, but deal with a padded type
specially.