From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2493 invoked by alias); 30 Apr 2002 20:56:02 -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 2456 invoked by uid 71); 30 Apr 2002 20:56:01 -0000 Resent-Date: 30 Apr 2002 20:56:01 -0000 Resent-Message-ID: <20020430205601.2455.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, fred@nextnewgig.com Received:(qmail 26869 invoked by uid 61); 30 Apr 2002 20:47:00 -0000 Message-Id:<20020430204700.26866.qmail@sources.redhat.com> Date: Tue, 30 Apr 2002 13:56:00 -0000 From: fred@nextnewgig.com Reply-To: fred@nextnewgig.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/6522: Incorrect struct offset for unaligned 64-bit fields in debug information X-SW-Source: 2002-04/txt/msg01657.txt.bz2 List-Id: >Number: 6522 >Category: target >Synopsis: Incorrect struct offset for unaligned 64-bit fields in debug information >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Apr 30 13:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: fred@nextnewgig.com >Release: GNU C++ version 2.96 20000731 (Red Hat Linux 7.1 2.96-98) >Organization: >Environment: Linux x86 >Description: The debug symbol information is incorrect for unaligned 64-bit fields in a struct. >How-To-Repeat: Compile with "gcc -o t64 -gdwarf-2 t64.cpp", run gdb on this program and notice that the difference between the address of Global_struct.bbb and Global_struct.aa is 8 when it should be 4. Displaying Global_struct or Local_struct at the end of this program will result in the incorrect value for field bbb being displayed. >Fix: >Release-Note: >Audit-Trail: >Unformatted: