From 5f2765b3a7f3a2877eeb179329a4573aff9264fc Mon Sep 17 00:00:00 2001 From: tsutsui Date: Fri, 21 Apr 2000 16:09:58 +0000 Subject: Add a patch for FUNCTION_PROFILER bug. From gnusrc/gnu/dist/gcc/config/mips/mips.h (1.3->1.4) --- cross/mipsel-netbsd/patches/patch-aa | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cross/mipsel-netbsd/patches/patch-aa (limited to 'cross/mipsel-netbsd') diff --git a/cross/mipsel-netbsd/patches/patch-aa b/cross/mipsel-netbsd/patches/patch-aa new file mode 100644 index 00000000000..d3753a6ae15 --- /dev/null +++ b/cross/mipsel-netbsd/patches/patch-aa @@ -0,0 +1,18 @@ +--- gcc/config/mips/mips.h Tue Jul 21 07:15:32 1998 ++++ gcc/config/mips/mips.h Sat Feb 27 12:36:28 1999 +@@ -2519,13 +2519,14 @@ + fprintf (FILE, "\t.set\tnoat\n"); \ + fprintf (FILE, "\tmove\t%s,%s\t\t# save current return address\n", \ + reg_names[GP_REG_FIRST + 1], reg_names[GP_REG_FIRST + 31]); \ +- fprintf (FILE, "\tjal\t_mcount\n"); \ + fprintf (FILE, \ + "\t%s\t%s,%s,%d\t\t# _mcount pops 2 words from stack\n", \ + TARGET_64BIT ? "dsubu" : "subu", \ + reg_names[STACK_POINTER_REGNUM], \ + reg_names[STACK_POINTER_REGNUM], \ + Pmode == DImode ? 16 : 8); \ ++ fprintf (FILE, "\tjal\t_mcount\n"); \ ++ fprintf (FILE, "\tnop\n"); \ + fprintf (FILE, "\t.set\treorder\n"); \ + fprintf (FILE, "\t.set\tat\n"); \ + } -- cgit v1.2.3