Subject: CVS commit: gnusrc/gnu/dist/toolchain/gcc/config/mips
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 01/04/2002 07:29:39
Module Name:	gnusrc
Committed By:	thorpej
Date:		Fri Jan  4 05:29:39 UTC 2002

Modified Files:
	gnusrc/gnu/dist/toolchain/gcc/config/mips: mips.h

Log Message:
Apply the patch from:

	http://gcc.gnu.org/ml/gcc-patches/2000-06/msg00389.html

ChangeLog for this change (which was never committed to the master
GCC sources; the bug still exists in GCC 3.x!):

2000-05-09  Ethan Solomita  ethan@cs.columbia.edu

	* config/mips/mips.h (FUNCTION_PROFILER): Deal with
	the case where jal is expanded as a macro.

This is done by removing the .reorder/.noreorder, and moving the
call to _mcount to after the stack adjust, thereby letting the
assembler deal with the delay slot, etc.

This fixes profiling with libraries built -mabicalls (default on
NetBSD).

I can't believe how long this problem has been discussed-but-not-fixed
on the GCC mailing list...


To generate a diff of this commit:
cvs rdiff -r1.1.1.1 -r1.2 gnusrc/gnu/dist/toolchain/gcc/config/mips/mips.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.