aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@gmail.com>2020-03-16 16:56:22 +0200
committerClaudiu Zissulescu <claziss@gmail.com>2020-03-31 15:11:03 +0300
commitdc56917d1117770833e1f672afe8c65770be7109 (patch)
treeae4c8ab5bc045cd0a6b5567009e8552185150ef5 /gcc
parentd08a318b4fdf92f6e57116349f37195fbc085b9e (diff)
downloadgcc-dc56917d1117770833e1f672afe8c65770be7109.zip
gcc-dc56917d1117770833e1f672afe8c65770be7109.tar.gz
gcc-dc56917d1117770833e1f672afe8c65770be7109.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arc/arc.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9da7a4a..3d4e798 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 922ccc5..6b96c5e 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -4530,7 +4530,7 @@ arc_print_operand (FILE *file, rtx x, int code)
case 'c':
if (GET_CODE (x) == CONST_INT)
- fprintf (file, "%ld", INTVAL (x) );
+ fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x) );
else
output_operand_lossage ("invalid operands to %%c code");
@@ -4724,7 +4724,7 @@ arc_print_operand (FILE *file, rtx x, int code)
/* No special treatment for jli_fixed functions. */
if (code == 'j')
break;
- fprintf (file, "%ld\t; @",
+ fprintf (file, HOST_WIDE_INT_PRINT_DEC "\t; @",
TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (attrs))));
assemble_name (file, XSTR (x, 0));
return;
@@ -4745,7 +4745,7 @@ arc_print_operand (FILE *file, rtx x, int code)
tree attrs = (TREE_TYPE (SYMBOL_REF_DECL (x)) != error_mark_node
? TYPE_ATTRIBUTES (TREE_TYPE (SYMBOL_REF_DECL (x)))
: NULL_TREE);
- fprintf (file, "%ld\t; @",
+ fprintf (file, HOST_WIDE_INT_PRINT_DEC "\t; @",
TREE_INT_CST_LOW (TREE_VALUE (TREE_VALUE (attrs))));
assemble_name (file, XSTR (x, 0));
return;