diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 9e5583ecf78..8f19cc0441d 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -2005,7 +2005,7 @@ summarize_insn (x, sum, set) default: format_ptr = GET_RTX_FORMAT (GET_CODE (x)); for (i = GET_RTX_LENGTH (GET_CODE (x)); i >= 0; i--) - switch (*format_ptr++) + switch (format_ptr[i]) { case 'e': summarize_insn (XEXP (x, i), sum, 0);