diff options
Diffstat (limited to 'gcc/config/h8300')
-rw-r--r-- | gcc/config/h8300/h8300.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 86790699f13..3d9c0fb7efb 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -2147,21 +2147,21 @@ h8300_displacement_length (rtx addr, int size) return h8300_constant_length (offset); } -/* Store the class of operand OP in *CLASS and return the length of any - extra operand fields. SIZE is the number of bytes in OP. CLASS +/* Store the class of operand OP in *OPCLASS and return the length of any + extra operand fields. SIZE is the number of bytes in OP. OPCLASS can be null if only the length is needed. */ static unsigned int -h8300_classify_operand (rtx op, int size, enum h8300_operand_class *class) +h8300_classify_operand (rtx op, int size, enum h8300_operand_class *opclass) { enum h8300_operand_class dummy; - if (class == 0) - class = &dummy; + if (opclass == 0) + opclass = &dummy; if (CONSTANT_P (op)) { - *class = H8OP_IMMEDIATE; + *opclass = H8OP_IMMEDIATE; /* Byte-sized immediates are stored in the opcode fields. */ if (size == 1) @@ -2182,27 +2182,27 @@ h8300_classify_operand (rtx op, int size, enum h8300_operand_class *class) op = XEXP (op, 0); if (CONSTANT_P (op)) { - *class = H8OP_MEM_ABSOLUTE; + *opclass = H8OP_MEM_ABSOLUTE; return h8300_constant_length (op); } else if (GET_CODE (op) == PLUS && CONSTANT_P (XEXP (op, 1))) { - *class = H8OP_MEM_COMPLEX; + *opclass = H8OP_MEM_COMPLEX; return h8300_displacement_length (op, size); } else if (GET_RTX_CLASS (GET_CODE (op)) == RTX_AUTOINC) { - *class = H8OP_MEM_COMPLEX; + *opclass = H8OP_MEM_COMPLEX; return 0; } else if (register_operand (op, VOIDmode)) { - *class = H8OP_MEM_BASE; + *opclass = H8OP_MEM_BASE; return 0; } } gcc_assert (register_operand (op, VOIDmode)); - *class = H8OP_REGISTER; + *opclass = H8OP_REGISTER; return 0; } @@ -2228,12 +2228,12 @@ h8300_length_from_table (rtx op1, rtx op2, const h8300_length_table *table) unsigned int h8300_unary_length (rtx op) { - enum h8300_operand_class class; + enum h8300_operand_class opclass; unsigned int size, operand_length; size = GET_MODE_SIZE (GET_MODE (op)); - operand_length = h8300_classify_operand (op, size, &class); - switch (class) + operand_length = h8300_classify_operand (op, size, &opclass); + switch (opclass) { case H8OP_REGISTER: return 2; @@ -2257,13 +2257,13 @@ h8300_unary_length (rtx op) static unsigned int h8300_short_immediate_length (rtx op) { - enum h8300_operand_class class; + enum h8300_operand_class opclass; unsigned int size, operand_length; size = GET_MODE_SIZE (GET_MODE (op)); - operand_length = h8300_classify_operand (op, size, &class); + operand_length = h8300_classify_operand (op, size, &opclass); - switch (class) + switch (opclass) { case H8OP_REGISTER: return 2; @@ -2283,7 +2283,7 @@ h8300_short_immediate_length (rtx op) static unsigned int h8300_bitfield_length (rtx op, rtx op2) { - enum h8300_operand_class class; + enum h8300_operand_class opclass; unsigned int size, operand_length; if (GET_CODE (op) == REG) @@ -2291,9 +2291,9 @@ h8300_bitfield_length (rtx op, rtx op2) gcc_assert (GET_CODE (op) != REG); size = GET_MODE_SIZE (GET_MODE (op)); - operand_length = h8300_classify_operand (op, size, &class); + operand_length = h8300_classify_operand (op, size, &opclass); - switch (class) + switch (opclass) { case H8OP_MEM_BASE: case H8OP_MEM_ABSOLUTE: @@ -4526,15 +4526,15 @@ output_a_shift (rtx *operands) } } -/* Count the number of assembly instructions in a string TEMPLATE. */ +/* Count the number of assembly instructions in a string TEMPL. */ static unsigned int -h8300_asm_insn_count (const char *template) +h8300_asm_insn_count (const char *templ) { unsigned int count = 1; - for (; *template; template++) - if (*template == '\n') + for (; *templ; templ++) + if (*templ == '\n') count++; return count; |