aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2020-11-15 17:41:52 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2020-11-15 17:41:52 +0000
commit8b3be949a563eb1ef23f777587b58f85cc7b9ef6 (patch)
tree31d1d0728a7eceb2f635f83ba9fa4688809c45ce
parent9ba5e926907fd1e2e0fb35e00a571a4e64a1e912 (diff)
downloadgcc-8b3be949a563eb1ef23f777587b58f85cc7b9ef6.zip
gcc-8b3be949a563eb1ef23f777587b58f85cc7b9ef6.tar.gz
gcc-8b3be949a563eb1ef23f777587b58f85cc7b9ef6.tar.bz2
VAX: Use `rtx_code' to hold the RTL expression code in `vax_rtx_costs'
Use `enum rtx_code' rather than `int' to hold the the RTL expression code in `vax_rtx_costs', matching the type these codes have been defined with and making debugging just a tiny little bit easier. gcc/ * config/vax/vax.c (vax_rtx_costs): Use `rtx_code' rather than `int' for `code'.
-rw-r--r--gcc/config/vax/vax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c
index d372c4a..da4e6cb 100644
--- a/gcc/config/vax/vax.c
+++ b/gcc/config/vax/vax.c
@@ -764,7 +764,7 @@ vax_rtx_costs (rtx x, machine_mode mode, int outer_code,
int opno ATTRIBUTE_UNUSED,
int *total, bool speed ATTRIBUTE_UNUSED)
{
- int code = GET_CODE (x);
+ enum rtx_code code = GET_CODE (x);
int i = 0; /* may be modified in switch */
const char *fmt = GET_RTX_FORMAT (code); /* may be modified in switch */