Module Name: src Committed By: mrg Date: Sun Aug 11 07:53:23 UTC 2024
Modified Files: src/external/gpl3/gcc/dist/gcc/config/sh: sh_treg_combine.cc Log Message: fix SH3 regression since GCC 10. this is from: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=e214cab68cb34e77622b91113f7698cf137bbdd6 a function returning "int" was changed to return "bool", but this file had a local prototype, so while the callee was now only setting 8 bits in the return register, the caller was checking 32 bits. To generate a diff of this commit: cvs rdiff -u -r1.1.1.11 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/sh/sh_treg_combine.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/sh/sh_treg_combine.cc diff -u src/external/gpl3/gcc/dist/gcc/config/sh/sh_treg_combine.cc:1.1.1.11 src/external/gpl3/gcc/dist/gcc/config/sh/sh_treg_combine.cc:1.2 --- src/external/gpl3/gcc/dist/gcc/config/sh/sh_treg_combine.cc:1.1.1.11 Sun Jun 30 07:36:13 2024 +++ src/external/gpl3/gcc/dist/gcc/config/sh/sh_treg_combine.cc Sun Aug 11 07:53:23 2024 @@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. #include "cfgrtl.h" #include "tree-pass.h" #include "expr.h" +#include "tm-preds.h" /* This pass tries to optimize for example this: @@ -426,10 +427,6 @@ is_conditional_insn (rtx_insn* i) return GET_CODE (p) == SET && GET_CODE (XEXP (p, 1)) == IF_THEN_ELSE; } -// FIXME: Remove dependency on SH predicate function somehow. -extern int t_reg_operand (rtx, machine_mode); -extern int negt_reg_operand (rtx, machine_mode); - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // RTL pass class