[Ada] Relax restrictions on volatile components
Eric Botcazou
ebotcazou@adacore.com
Mon May 22 08:46:00 GMT 2017
GNAT has historically enforced strong restrictions on volatile components, but
this is no basis for that in the RM.
Tested on x86_64-suse-linux, applied on the mainline.
2017-05-22 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_field): Do not enforce strict
alignment for simple volatile fields and remove associated errors.
2017-05-22 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/volatile1.ads: Remove obsolete errors.
* gnat.dg/specs/clause_on_volatile.ads: Likewise.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 5407 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170522/d493d8a9/attachment.bin>
More information about the Gcc-patches
mailing list