diff options
author | tsutsui <tsutsui@pkgsrc.org> | 2000-04-21 16:09:58 +0000 |
---|---|---|
committer | tsutsui <tsutsui@pkgsrc.org> | 2000-04-21 16:09:58 +0000 |
commit | c53c8d770e741026303c17a9d9c1758e33cf6d4f (patch) | |
tree | ac89da12112fa5ddc8384c95236f713ddb061933 | |
parent | 6cae98818d2c26add3a926fe033c6e6c8ab90fe6 (diff) | |
download | pkgsrc-c53c8d770e741026303c17a9d9c1758e33cf6d4f.tar.gz |
Add a patch for FUNCTION_PROFILER bug.
From gnusrc/gnu/dist/gcc/config/mips/mips.h (1.3->1.4)
-rw-r--r-- | cross/mipseb-netbsd/patches/patch-aa | 18 | ||||
-rw-r--r-- | cross/mipsel-netbsd/patches/patch-aa | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/cross/mipseb-netbsd/patches/patch-aa b/cross/mipseb-netbsd/patches/patch-aa new file mode 100644 index 00000000000..d3753a6ae15 --- /dev/null +++ b/cross/mipseb-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"); \ + } 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"); \ + } |