diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2019-08-19 01:02:43 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2019-08-19 01:02:43 +0200 |
commit | b8b7d4cbca67bdba3f3d31e4da99fc850cb61168 (patch) | |
tree | 55ce57f17edd63adf3c18b2f3e1ecfe75b81b63d /toolchain/gcc/patches/9.2.0/110-Fix-MIPS-PR-84790.patch | |
parent | c262daf308e0f0bd93bb5c5ee6238773935079ee (diff) | |
download | upstream-b8b7d4cbca67bdba3f3d31e4da99fc850cb61168.tar.gz upstream-b8b7d4cbca67bdba3f3d31e4da99fc850cb61168.tar.bz2 upstream-b8b7d4cbca67bdba3f3d31e4da99fc850cb61168.zip |
gcc: Update gcc 9.X to version 9.2.0
This updates the GCC version 9.X to version 9.2.0.
The removed patches are applied upstream.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'toolchain/gcc/patches/9.2.0/110-Fix-MIPS-PR-84790.patch')
-rw-r--r-- | toolchain/gcc/patches/9.2.0/110-Fix-MIPS-PR-84790.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/9.2.0/110-Fix-MIPS-PR-84790.patch b/toolchain/gcc/patches/9.2.0/110-Fix-MIPS-PR-84790.patch new file mode 100644 index 0000000000..c7e60e3157 --- /dev/null +++ b/toolchain/gcc/patches/9.2.0/110-Fix-MIPS-PR-84790.patch @@ -0,0 +1,20 @@ +Fix https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84790. +MIPS16 functions have a static assembler prologue which clobbers +registers v0 and v1. Add these register clobbers to function call +instructions. + +--- a/gcc/config/mips/mips.c ++++ b/gcc/config/mips/mips.c +@@ -3131,6 +3131,12 @@ mips_emit_call_insn (rtx pattern, rtx or + emit_insn (gen_update_got_version ()); + } + ++ if (TARGET_MIPS16 && TARGET_USE_GOT) ++ { ++ clobber_reg (&CALL_INSN_FUNCTION_USAGE (insn), MIPS16_PIC_TEMP); ++ clobber_reg (&CALL_INSN_FUNCTION_USAGE (insn), MIPS_PROLOGUE_TEMP (word_mode)); ++ } ++ + if (TARGET_MIPS16 + && TARGET_EXPLICIT_RELOCS + && TARGET_CALL_CLOBBERED_GP) |