Re: [patch] Prevent memory explosion for big discriminated types

2014-04-14 Thread Eric Botcazou
> > The patch plugs the hole by invoking it for DECL_FIELD_OFFSET as well > > (and the effect is spectacular for pathological cases). Tested on > > x86_64-suse-linux, although this will essentially only affect Ada. OK > > for the mainline? > > Ok. Thanks. It turns out that the patch was not com

Re: [patch] Prevent memory explosion for big discriminated types

2014-04-14 Thread Richard Biener
On Mon, Apr 14, 2014 at 9:44 AM, Eric Botcazou wrote: > Hi, > > in Ada types can be very dynamic: not only can their shape depend on variables > but it can also depend on the object itself (these are called self-referential > types). This raises interesting compile-time issues when you have dozen

[patch] Prevent memory explosion for big discriminated types

2014-04-14 Thread Eric Botcazou
Hi, in Ada types can be very dynamic: not only can their shape depend on variables but it can also depend on the object itself (these are called self-referential types). This raises interesting compile-time issues when you have dozens of dynamic fields in a record type, or dozens of nested dyn