[Ada] Plug loophole in warn_on_field_placement
Eric Botcazou
ebotcazou@adacore.com
Tue Jun 12 10:01:00 GMT 2018
Only the first component of a group of reordered bitfields was warned about.
Tested on x86-64/Linux, applied on mainline and 8 branch.
2018-06-12 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (warn_on_field_placement): Use specific wording
for discriminants.
(warn_on_list_placement): New static function.
(components_to_record): Use it to warn on multiple fields in list.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 3584 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180612/d9a181bd/attachment.bin>
More information about the Gcc-patches
mailing list