aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload1.cc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2023-02-15 01:15:43 +0100
committerHans-Peter Nilsson <hp@bitrange.com>2023-02-15 01:15:43 +0100
commitd68adf853759fa68945122a1b72035cab78d5077 (patch)
tree30ea09f734104235d903199f3fa72f05d19c4b8e /gcc/reload1.cc
parentabbdb623c4287baad6e5bff1ae694ef30264519c (diff)
downloadgcc-d68adf853759fa68945122a1b72035cab78d5077.zip
gcc-d68adf853759fa68945122a1b72035cab78d5077.tar.gz
gcc-d68adf853759fa68945122a1b72035cab78d5077.tar.bz2
gen_reload: Correct parameter for fatal_insn call
Observed when disabling LEGITIMIZE_RELOAD_ADDRESS for cris-elf: the current code doesn't handle the post-cc0 parallel-with-clobber-of-cc0 sets, dropping down into the fatal_insn call. Following the code, it's obvious that the variable "set" is always NULL at the call. The intended parameter is "in". * reload1.cc (gen_reload): Correct rtx parameter for fatal_insn "failure trying to reload" call.
Diffstat (limited to 'gcc/reload1.cc')
-rw-r--r--gcc/reload1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/reload1.cc b/gcc/reload1.cc
index 6fe22d8..7dcef50 100644
--- a/gcc/reload1.cc
+++ b/gcc/reload1.cc
@@ -8606,7 +8606,7 @@ gen_reload (rtx out, rtx in, int opnum, enum reload_type type)
return insn;
}
- fatal_insn ("failure trying to reload:", set);
+ fatal_insn ("failure trying to reload:", in);
}
/* If IN is a simple operand, use gen_move_insn. */
else if (OBJECT_P (in) || GET_CODE (in) == SUBREG)