This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Missing type info in debug data in 4.0.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]