On Wed, May 04, 2005 at 04:15:53PM -0400, Paul Koning wrote:
> OUCH.
>
> Some of the types in question are probably not used in the program --
> they are there for debugging. It's disturbing to see this sort of
> incompatibility.
-fno-eliminate-unused-debug-types?
> The rule for "used" clearly has problems. One of the types missing is
> a struct that is referenced by way of casts, e.g.,
> struct foo { int x; int y; };
> bar = ((struct foo *)0x1234000)->x;
>
> and that usage apparently is not enough to get gcc 4.0.0 to drop the
> definition of "struct foo" into the output.
Is there not even a DW_AT_declaration for struct foo? If so, it's a
bug.
--
Daniel Jacobowitz
CodeSourcery, LLC