diff options
author | tsutsui <tsutsui> | 2000-04-21 16:09:58 +0000 |
---|---|---|
committer | tsutsui <tsutsui> | 2000-04-21 16:09:58 +0000 |
commit | 5f2765b3a7f3a2877eeb179329a4573aff9264fc (patch) | |
tree | ac89da12112fa5ddc8384c95236f713ddb061933 /cross/mipsel-netbsd | |
parent | 7995e7ea1f6b9caa967cd0cfb0a66111f1337663 (diff) | |
download | pkgsrc-5f2765b3a7f3a2877eeb179329a4573aff9264fc.tar.gz |
Add a patch for FUNCTION_PROFILER bug.
From gnusrc/gnu/dist/gcc/config/mips/mips.h (1.3->1.4)
Diffstat (limited to 'cross/mipsel-netbsd')
-rw-r--r-- | cross/mipsel-netbsd/patches/patch-aa | 18 |
1 files changed, 18 insertions, 0 deletions
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"); \ + } |