Commit dc56917d by Claudiu Zissulescu

arc: Update operand printing

Use HOST_WIDE_INT_PRINT_DEC macro instead of %ld for format printing.

gcc/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.c (arc_print_operand): Use
	HOST_WIDE_INT_PRINT_DEC macro.
parent d08a318b
2020-03-31 Claudiu Zissulescu <claziss@synopsys.com> 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_print_operand): Use
HOST_WIDE_INT_PRINT_DEC macro.
2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it. * config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it.
2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com> 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
......
...@@ -4530,7 +4530,7 @@ arc_print_operand (FILE *file, rtx x, int code) ...@@ -4530,7 +4530,7 @@ arc_print_operand (FILE *file, rtx x, int code)
case 'c': case 'c':
if (GET_CODE (x) == CONST_INT) if (GET_CODE (x) == CONST_INT)
fprintf (file, "%ld", INTVAL (x) ); fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x) );
else else
output_operand_lossage ("invalid operands to %%c code"); output_operand_lossage ("invalid operands to %%c code");
...@@ -4724,7 +4724,7 @@ arc_print_operand (FILE *file, rtx x, int code) ...@@ -4724,7 +4724,7 @@ arc_print_operand (FILE *file, rtx x, int code)
/* No special treatment for jli_fixed functions. */ /* No special treatment for jli_fixed functions. */
if (code == 'j') if (code == 'j')
break; break;
fprintf (file, "%ld\t; @", fprintf (file, HOST_WIDE_INT_PRINT_DEC "\t; @",
TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (attrs)))); TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (attrs))));
assemble_name (file, XSTR (x, 0)); assemble_name (file, XSTR (x, 0));
return; return;
...@@ -4745,7 +4745,7 @@ arc_print_operand (FILE *file, rtx x, int code) ...@@ -4745,7 +4745,7 @@ arc_print_operand (FILE *file, rtx x, int code)
tree attrs = (TREE_TYPE (SYMBOL_REF_DECL (x)) != error_mark_node tree attrs = (TREE_TYPE (SYMBOL_REF_DECL (x)) != error_mark_node
? TYPE_ATTRIBUTES (TREE_TYPE (SYMBOL_REF_DECL (x))) ? TYPE_ATTRIBUTES (TREE_TYPE (SYMBOL_REF_DECL (x)))
: NULL_TREE); : NULL_TREE);
fprintf (file, "%ld\t; @", fprintf (file, HOST_WIDE_INT_PRINT_DEC "\t; @",
TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (attrs)))); TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (attrs))));
assemble_name (file, XSTR (x, 0)); assemble_name (file, XSTR (x, 0));
return; return;
......
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