This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problems with -pg option
- From: "Vishwas H.K" <vishwas at amplewave dot com>
- To: gcc at gcc dot gnu dot org
- Cc: gcc at gnu dot org
- Date: 31 Jul 2003 19:41:19 +0530
- Subject: Problems with -pg option
- Organization:
Hi,
I am facing problems with the gcc options -fomit-frame-pointer and -pg
(option for the profiler gprof). As I could find out, -pg and
-fomit-frame-pointer don't and can't co-exist. What I have done is, I
have
removed the option -fomit-frame-pointer and instead, I am using
-fno-omit-frame-pointer. Even then, -pg seems to cause a segmentation
fault in my application.
My application is such that shared libraries are linked with one main
".o" and each of the shared library is built using separate makefiles.
All the makefiles have the -pg option and the -fno-omit-frame-pointer.
Do I need to turn off any optimization (like -O2, -O3, etc) also ?
Any info would be of great help.
PLEASE CC THE REPLY TO vishwas@amplewave.com ALSO.
Thanks in advance,
Vishwas .H.K