c++/6381: Missing assembler label
Andreas Schwab
schwab@suse.de
Fri Apr 19 17:26:00 GMT 2002
>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:
More information about the Gcc-prs
mailing list