expanding addrs for initializers

Eric Botcazou ebotcazou@adacore.com
Sun Sep 18 17:11:00 GMT 2005


 > The second chunk of the patch catches the cases where we're putting a
> declarator in a too-small block of memory.  I'm pretty sure we need to
> limit this check to scalar types, as they're the ones that suffer from
> the endianness problem.  I leave it in for the moment as a point of
> discussion; I think we should detect when scalar conversions are
> erroneously stripped.

In the same department as unchecked conversions, we have unchecked unions in 
Ada, so we again need a bit more leeway.  I've applied the following patch.


2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>

        * varasm.c (output_constant): Do not abort on conversions to union
	types between different sizes.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7429-002.diff
Type: text/x-diff
Size: 984 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050918/e1ec7469/attachment.bin>


More information about the Gcc-patches mailing list