[LLVMbugs] [Bug 12476] New: "ld: warning: can't add line info to anonymous symbol cstring=SetTraceFilter" when building with -O3 -g in a class with 8 virtual bases
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 5 18:27:22 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12476
Bug #: 12476
Summary: "ld: warning: can't add line info to anonymous symbol
cstring=SetTraceFilter" when building with -O3 -g in a
class with 8 virtual bases
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8332
--> http://llvm.org/bugs/attachment.cgi?id=8332
repro
ld warns when compiling the (pretty reduced) attached file:
$ clang++ -w -c repro.ii -arch i386 -gdwarf-2 -O3 -fno-exceptions && \
clang++ -shared -o libfoo.dylib repro.o -arch i386 \
-undefined dynamic_lookup -gdwarf-2
ld: warning: can't add line info to anonymous symbol
cstring=SetTraceFilter(filter=0x%x) from repro.o
This is with this ld:
$ ld -v
@(#)PROGRAM:ld PROJECT:ld64-97.17
This does not happen with g++ (i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple
Inc. build 5664).
I hear that ld warning might no longer exist with newer ld64s (haven't checked
though), but it might point at a debug information bug none the less.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list