[LLVMbugs] [Bug 16251] New: Clang -pg option doesn't work on Linux
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 6 16:34:53 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16251
Bug ID: 16251
Summary: Clang -pg option doesn't work on Linux
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: qyang at brkt.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10640
--> http://llvm.org/bugs/attachment.cgi?id=10640&action=edit
Replace crt1.o with gcrt1.o when -pg is specified
Clang linker driver links the wrong crt1.o file when -pg option is specified.
As a result, the gprof doesn't work with clang on Linux. Programs compiled with
clang -pg doesn't generate gmon.out file.
Attached is patch which replaces crt1.o with gcrt1.o when -pg is specified.
With the patch, compiled programs generate gmon.out file correctly.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130606/05ba8101/attachment.html>
More information about the llvm-bugs
mailing list