This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/14574] New: Profile arcs doesn't work when full output file path is used.
- From: "kuba at parasoft dot com dot pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Mar 2004 21:07:49 -0000
- Subject: [Bug debug/14574] New: Profile arcs doesn't work when full output file path is used.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
/* Test case: test.c */
int main()
{
return 0;
}
/* */
I guess any valid file will do.
Steps to reproduce problem:
1) Compile file with profile info
test@gollum:~/src/test$gcc a.c -pg -fprofile-arcs -c -o /home/test/src/test/a.o
Note that I use full path for output file
2) Create executable:
test@gollum:~/src/test$gcc a.o -pg -fprofile-arcs -o a
3) Run created test:
test@gollum:~/src/test$ ./a
arc profiling: Can't open output file /home/test/src/test//home/test/src/test/b.da.
File with profiled info cannot be created. It looks like
bad file path. If during file compilation I use just file
name as output file (not full path), every thing works fine.
I can even use relative path and its works fine.
Compiler version:
test@gollum:~/src/test$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.3 (Debian 20040306)
--
Summary: Profile arcs doesn't work when full output file path is
used.
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kuba at parasoft dot com dot pl
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14574