Commit 35923e46 by Zhenqiang Chen Committed by Zhenqiang Chen

arm.c (arm_print_operand, thumb_exit): Make sure GET_MODE_SIZE argument is enum machine_mode.

2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

	* config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
	GET_MODE_SIZE argument is enum machine_mode.

From-SVN: r209556
parent 4552e70c
2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
* config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
GET_MODE_SIZE argument is enum machine_mode.
2014-04-22 Jakub Jelinek <jakub@redhat.com> 2014-04-22 Jakub Jelinek <jakub@redhat.com>
PR target/60910 PR target/60910
......
...@@ -21427,7 +21427,7 @@ arm_print_operand (FILE *stream, rtx x, int code) ...@@ -21427,7 +21427,7 @@ arm_print_operand (FILE *stream, rtx x, int code)
register. */ register. */
case 'p': case 'p':
{ {
int mode = GET_MODE (x); enum machine_mode mode = GET_MODE (x);
int regno; int regno;
if (GET_MODE_SIZE (mode) != 8 || !REG_P (x)) if (GET_MODE_SIZE (mode) != 8 || !REG_P (x))
...@@ -21451,7 +21451,7 @@ arm_print_operand (FILE *stream, rtx x, int code) ...@@ -21451,7 +21451,7 @@ arm_print_operand (FILE *stream, rtx x, int code)
case 'P': case 'P':
case 'q': case 'q':
{ {
int mode = GET_MODE (x); enum machine_mode mode = GET_MODE (x);
int is_quad = (code == 'q'); int is_quad = (code == 'q');
int regno; int regno;
...@@ -21487,7 +21487,7 @@ arm_print_operand (FILE *stream, rtx x, int code) ...@@ -21487,7 +21487,7 @@ arm_print_operand (FILE *stream, rtx x, int code)
case 'e': case 'e':
case 'f': case 'f':
{ {
int mode = GET_MODE (x); enum machine_mode mode = GET_MODE (x);
int regno; int regno;
if ((GET_MODE_SIZE (mode) != 16 if ((GET_MODE_SIZE (mode) != 16
...@@ -21620,7 +21620,7 @@ arm_print_operand (FILE *stream, rtx x, int code) ...@@ -21620,7 +21620,7 @@ arm_print_operand (FILE *stream, rtx x, int code)
/* Translate an S register number into a D register number and element index. */ /* Translate an S register number into a D register number and element index. */
case 'y': case 'y':
{ {
int mode = GET_MODE (x); enum machine_mode mode = GET_MODE (x);
int regno; int regno;
if (GET_MODE_SIZE (mode) != 4 || !REG_P (x)) if (GET_MODE_SIZE (mode) != 4 || !REG_P (x))
...@@ -21654,7 +21654,7 @@ arm_print_operand (FILE *stream, rtx x, int code) ...@@ -21654,7 +21654,7 @@ arm_print_operand (FILE *stream, rtx x, int code)
number into a D register number and element index. */ number into a D register number and element index. */
case 'z': case 'z':
{ {
int mode = GET_MODE (x); enum machine_mode mode = GET_MODE (x);
int regno; int regno;
if (GET_MODE_SIZE (mode) != 2 || !REG_P (x)) if (GET_MODE_SIZE (mode) != 2 || !REG_P (x))
...@@ -25894,7 +25894,7 @@ thumb_exit (FILE *f, int reg_containing_return_addr) ...@@ -25894,7 +25894,7 @@ thumb_exit (FILE *f, int reg_containing_return_addr)
int pops_needed; int pops_needed;
unsigned available; unsigned available;
unsigned required; unsigned required;
int mode; enum machine_mode mode;
int size; int size;
int restore_a4 = FALSE; int restore_a4 = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment