From: Maciej W. Rozycki Date: Sun, 15 Nov 2020 17:41:52 +0000 (+0000) Subject: VAX: Use `rtx_code' to hold the RTL expression code in `vax_rtx_costs' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b3be949a563eb1ef23f777587b58f85cc7b9ef6;p=gcc.git 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'. --- diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index d372c4ace9d..da4e6cb1745 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 */