This is the mail archive of the
mailing list for the GCC project.
Re: changes made to gmon-sol2.c not reflected after recompiling gcc
- From: Ian Lance Taylor <iant at google dot com>
- To: "Hari K. Pyla" <harip at vt dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 28 Nov 2006 13:43:26 -0800
- Subject: Re: changes made to gmon-sol2.c not reflected after recompiling gcc
- References: <456C99C9.email@example.com>
"Hari K. Pyla" <firstname.lastname@example.org> writes:
> I edited the following functions in gmon-sol2.c in
> gcc-4.1.1/gcc/config/i386 directory
> (i) monstartup()
> (ii) _mcleanup()
> (iii) internal_mcount()
> (iv) moncontrol()
> basically added some fprintf()'s, changed the filename "gmon.out" to
> "newgmon.out" in create() and recompiled gcc with the following
> make install
> The changes do seem to be reflected in the new build of gcc. Is there
> anything that I am missing. I appreciate you taking time to answer
OK, I'm guessing that you're missing a "not" in the first sentence of
the last paragraph.
The problem is most likely that gmon-sol2.c is not used. You didn't
mention which type of host you are running on, but gmon-sol2.c is only
used on x86 Solaris systems.
On other x86 systems, including GNU/Linux, the equivalent code is
found in the C library. On a GNU/Linux system, you will find the code
in glibc, in the csu subdirectory.