[Ada] Issue missing warning for 'Size attribute
Eric Botcazou
ebotcazou@adacore.com
Tue May 26 01:10:00 GMT 2015
The documentation says that the compiler issues a warning for the 'Size
attribute on discrete types if the specified value is larger than 64, but we
failed to so for values between 65 and 128.
Tested on x86_64-suse-linux, applied on the mainline.
2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (maybe_pad_type): Do not apply adjustment to
original size for elementary types before issuing the size warning.
2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/warn11.adb: New test.
* gnat.dg/specs/alignment2.ads: Add dg-warning directive.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 461 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150526/3602039e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: warn11.adb
Type: text/x-adasrc
Size: 416 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150526/3602039e/attachment-0001.bin>
More information about the Gcc-patches
mailing list