This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc 3.3.2 and -fprofile-arcs
- From: Arun Patnaik <arupat at sybase dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 31 Oct 2003 13:19:23 -0800 (PST)
- Subject: gcc 3.3.2 and -fprofile-arcs
Hi,
I am trying to use the -fprofile-arcs option with GCC 3.3.2. The compilation is
successful however when I try to run the program to execute the training set,
it fails to generate the *.da files.
The reason being that it is trying to generate the files in an incorrect location.
I compiled as follows:
current directory is: /p/c
gcc ... -c -o /p/c/myprog1.o myprog1.c
gcc ... -c -o /p/c/myprog2.o myprog2.c
gcc ... -o /p/c/myprog myprog.c /p/c/myprog1.o /p/c/myprog2.o
When I run it tries to create the .da files as /p/c//p/c/myprog1.da
and obviously that fails.
This looks like a bug to me. Has anyone seen this problem ? Is there a
work around available ?
Also is there anyway I can direct gcc to put all the .da files in a
user specified directory or file.
It would have been better if all the information was put in one file with
appropriate labels instead of scattering it over all the various directories.
Thanks
- Arun