Fix PR ada/38127
Eric Botcazou
ebotcazou@adacore.com
Sun Nov 16 12:06:00 GMT 2008
This is yet another fallout of the recent switch to using a true boolean type.
It turns out that special-casing boolean types in make_type_from_size was not
a very good idea as the middle-end really expects types of integral bitfields
to have a precision greater or equal to the size of the bitfield.
Tested on i586-suse-linux, applied on the mainline.
2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
PR ada/38127
* gcc-interface/decl.c (make_type_from_size): Do not special-case
boolean types.
* gcc-interface/targtyps.c: Tweak comment.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 3500 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081116/8b2a6aa6/attachment.bin>
More information about the Gcc-patches
mailing list