diff mbox series

[committed] VAX: Use `rtx_code' to hold the RTL expression code in `vax_rtx_costs'

Message ID alpine.LFD.2.21.2011151717580.4064799@eddie.linux-mips.org
State Accepted
Headers show
Series [committed] VAX: Use `rtx_code' to hold the RTL expression code in `vax_rtx_costs' | expand

Commit Message

Maciej W. Rozycki Nov. 15, 2020, 5:44 p.m. UTC
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'.
---
Hi,

 No regressions in `vax-netbsdelf' testing.  Committed as obvious.

  Maciej
---
 gcc/config/vax/vax.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

gcc-vax-rtx-code.diff
diff mbox series

Patch

Index: gcc/gcc/config/vax/vax.c
===================================================================
--- gcc.orig/gcc/config/vax/vax.c
+++ gcc/gcc/config/vax/vax.c
@@ -764,7 +764,7 @@  vax_rtx_costs (rtx x, machine_mode mode,
 	       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 */