This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]