From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30755 invoked by alias); 3 May 2002 01:42:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 30132 invoked by uid 71); 3 May 2002 01:36:02 -0000 Date: Thu, 02 May 2002 18:42:00 -0000 Message-ID: <20020503013602.30131.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Daniel Jacobowitz Subject: Re: target/6522: Incorrect struct offset for unaligned 64-bit fields in debug information Reply-To: Daniel Jacobowitz X-SW-Source: 2002-05/txt/msg00054.txt.bz2 List-Id: The following reply was made to PR target/6522; it has been noted by GNATS. From: Daniel Jacobowitz To: jakub@gcc.gnu.org, fred@nextnewgig.com, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: target/6522: Incorrect struct offset for unaligned 64-bit fields in debug information Date: Thu, 2 May 2002 21:32:08 -0400 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