[Ada] Fix crash on very dynamic record types
Eric Botcazou
ebotcazou@adacore.com
Fri Feb 8 11:21:00 GMT 2019
This is a regression present on the mainline and 8 branch: in some specific
circumstances, you can get a crash when max_size is called from the gimplifier
on very dynamic record types. This makes the function a bit more robust.
Tested on x86_64-suse-linux, applied on mainline and 8 branch.
2019-02-08 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (max_size) <tcc_unary>: Be prepared for an
operand with VOID_TYPE.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 1330 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190208/795eb862/attachment.bin>
More information about the Gcc-patches
mailing list