This is the mail archive of the gcc-patches@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: target/6413


On Mon, Apr 22, 2002 at 10:38:32PM -0700, Richard Henderson wrote:
> On Tue, Apr 23, 2002 at 01:58:15PM +0930, Alan Modra wrote:
> > 	* function.h: (struct function): Add profile_label_no field.
> > 	(current_function_profile_label_no): Define.
> > 	* function.c: (profile_label_no): New static var.
> > 	(expand_function_start): Increment it, and copy to
> > 	current_function_profile_label_no.
> > 	* output.h (profile_label_no): Delete.
> > 	* final.c (profile_label_no): Delete.
> > 	(profile_function): Use current_function_profile_label_no.
> > 	(final_end_function): Don't increment profile_label_no here.
> > 	* config/pa/pa.c (current_function_number): Delete.
> > 	(pa_output_function_prologue): Don't output profile label here.
> > 	(hppa_profile_hook): Use label_no param rather than
> > 	current_function_number.
> > 	(FUNC_BEGIN_PROLOG_LABEL): Move to ..
> > 	* config/pa/pa.h: .. here.
> > 	(FUNCTION_PROFILER): Output profile label here.
> 
> Ok everywhere.

Dave Anglin just pointed out I need this on mainline.

	* config/i386/i386.c (ix86_osf_output_function_prologue): Replace
	profile_label_no with current_function_profile_label_no.

--- gcc/config/i386/i386.c~	2002-04-20 17:32:52.000000000 +0930
+++ gcc/config/i386/i386.c	2002-04-23 15:17:44.000000000 +0930
@@ -1335,7 +1335,7 @@
 {
   const char *prefix = "";
   const char *const lprefix = LPREFIX;
-  int labelno = profile_label_no;
+  int labelno = current_function_profile_label_no;
 
 #ifdef OSF_OS
 

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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