This is the mail archive of the gcc-bugs@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: target/6522: Incorrect struct offset for unaligned 64-bit fields in debug information


On Tue, Apr 30, 2002 at 11:30:38PM -0000, jakub@gcc.gnu.org wrote:
> Synopsis: Incorrect struct offset for unaligned 64-bit fields in debug information
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: jakub
> State-Changed-When: Tue Apr 30 16:30:37 2002
> State-Changed-Why:
>     You have not provided t64.cpp (or better t64.ii if t64.cpp
>     includes some headers).
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6522

I can confirm this in 3.1.  It's present in 3.0, but worked in 2.95.3. 
It's quite annoying, since GDB can't infer the right answer.

Here's another example:

typedef __complex__ float cf;
struct x { char c; cf f; } __attribute__ ((__packed__));
struct unpacked_x { char c; cf f; };

Compile and compare the debug info; it does not respect __packed__.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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