This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Large resources required to build profiled gcc
- From: Brad Lucier <lucier at math dot purdue dot edu>
- To: rth at redhat dot com (Richard Henderson)
- Cc: lucier at math dot purdue dot edu (Brad Lucier), gcc at gcc dot gnu dot org
- Date: Sat, 23 Mar 2002 03:21:00 -0500 (EST)
- Subject: Re: Large resources required to build profiled gcc
This eliminated the symptoms when bootstrapping gcc with
--enable-languages='c'
Brad
>
> Try this.
>
>
> r~
>
>
> * config/sparc/gmon-sol2.c (internal_mcount): Assume either
> _start or _init begins the text segment.
>
> Index: gmon-sol2.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/config/sparc/gmon-sol2.c,v
> retrieving revision 1.8
> diff -c -p -d -r1.8 gmon-sol2.c
> *** gmon-sol2.c 2000/11/19 13:15:51 1.8
> --- gmon-sol2.c 2002/03/23 00:37:51
> *************** static void internal_mcount(selfpc, from
> *** 291,298 ****
>
> if(!already_setup) {
> extern char etext[];
> already_setup = 1;
> ! monstartup(0, (char *)etext);
> #ifdef USE_ONEXIT
> on_exit(_mcleanup, 0);
> #else
> --- 291,300 ----
>
> if(!already_setup) {
> extern char etext[];
> + extern char _start[];
> + extern char _init[];
> already_setup = 1;
> ! monstartup(_start < _init ? _start : _init, etext);
> #ifdef USE_ONEXIT
> on_exit(_mcleanup, 0);
> #else
>