From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9814 invoked by alias); 20 Apr 2002 00:26:04 -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 9766 invoked by uid 71); 20 Apr 2002 00:26:01 -0000 Resent-Date: 20 Apr 2002 00:26:01 -0000 Resent-Message-ID: <20020420002601.9765.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, Andreas Schwab Received:(qmail 6503 invoked from network); 20 Apr 2002 00:16:11 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 20 Apr 2002 00:16:11 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id A710D1EA6B for ; Sat, 20 Apr 2002 02:16:10 +0200 (MEST) Message-Id:<200204200016.g3K0G9Mq015502@sykes.suse.de> Date: Fri, 19 Apr 2002 17:26:00 -0000 From: Andreas Schwab To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: c++/6381: Missing assembler label X-SW-Source: 2002-04/txt/msg01008.txt.bz2 List-Id: >Number: 6381 >Category: c++ >Synopsis: Missing assembler label >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Fri Apr 19 17:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.1 20020415 (prerelease) >Organization: >Environment: System: Linux sykes 2.4.18-SMP #1 SMP Sat Apr 13 18:56:25 UTC 2002 ia64 unknown Architecture: ia64 host: ia64-suse-linux-gnu build: ia64-suse-linux-gnu target: ia64-suse-linux-gnu configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --libdir=/usr/lib --enable-checking ia64-suse-linux >Description: A reference to a label is generated that is never defined. This happens only when compiling with -g. Without -g the object that references the omitted label is optimized out completely, since it is actually unused anyway. >How-To-Repeat: $ cat const.cc static const int foo[] = { 0 }; static const int * const bar[] = { foo }; $ gcc -O -g -c const.cc $ nm -u const.o foo >Fix: >Release-Note: >Audit-Trail: >Unformatted: