>>>>> "Daniel" == Daniel Jacobowitz <[EMAIL PROTECTED]> writes:

 Daniel> 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.

 Daniel> -fno-eliminate-unused-debug-types?

Oh.  Missed that, will try it.

 >> 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.

 Daniel> Is there not even a DW_AT_declaration for struct foo?  If so,
 Daniel> it's a bug.

I'll see about creating a small test case for a PR.

     paul

Reply via email to