From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16577 invoked by alias); 15 Apr 2002 19:46:11 -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 16517 invoked by uid 71); 15 Apr 2002 19:46:07 -0000 Resent-Date: 15 Apr 2002 19:46:07 -0000 Resent-Message-ID: <20020415194607.16516.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, aryeh@dreamzion.com Received:(qmail 15525 invoked by uid 61); 15 Apr 2002 19:43:55 -0000 Message-Id:<20020415194355.15524.qmail@sources.redhat.com> Date: Mon, 15 Apr 2002 12:46:00 -0000 From: aryeh@dreamzion.com Reply-To: aryeh@dreamzion.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: debug/6313: instance and type def stab types do not agree X-SW-Source: 2002-04/txt/msg00791.txt.bz2 List-Id: >Number: 6313 >Category: debug >Synopsis: instance and type def stab types do not agree >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Apr 15 12:46:05 PDT 2002 >Closed-Date: >Last-Modified: >Originator: aryeh@dreamzion.com >Release: unknown-1.0 >Organization: >Environment: FreeBSD loi.dreamzion.com 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001 murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC i386 >Description: In foo.c: foo() { int i; } in main.c: main() { foo(); } compile with: cc -gstabs -c main.c cc -gstabs -c foo.c cc -gstabs main.o foo.o -o main The final ELF executable (main) has the following n_string for the "int i" instance in foo(): i:(1,1) and the definition of "int" in both foo.o and main.o is: int:t(0,1)=r(0,1);-2147483648;2147483647; Since all typedefs for int are of type 0,1 and the instance is 1,1 there is no way to match the instance up with its type. >How-To-Repeat: See instructions in bug >Fix: the stab generator needs to be fixed >Release-Note: >Audit-Trail: >Unformatted: