This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Old GCC has no -fprofile-dir -- workarounds?
- From: Gabor Kozar <kozargabor at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 07 Apr 2014 17:39:35 +0200
- Subject: Old GCC has no -fprofile-dir -- workarounds?
- Authentication-results: sourceware.org; auth=none
Hi,
Â
At the company I work for we have a very specific environment which we
need to use. This includes a 32-bit GCC version 3.2.3 and a 64-bit GCC
version 4.1.2.
Â
I'm trying to integrate gcov into our build process. Due to the special
environment our applications run in, we're not able to use the
GCOV_PREFIX env variable (as described at
http://gcc.gnu.org/onlinedocs/gcc/Cross-profiling.html#Cross-profiling).
It also appears to me that the -fprofile-dir arg support only appeared
in GCC version 4.2.4, and we have no options to upgrade our GCC.
Â
So my question is: is it possible to achieve the same result as setting
-fprofile-dir in later versions in any way in our current version? I
realize there will probably not be any ideal or clean solutions: any
hacks or ideas are welcome.
Â
Thanks!
--
GÃbor 'ShdNx' KozÃr
kozargabor@gmail.com