From eec306385da4905bdc4c0f5b3768218a874a5362 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 3 Oct 2019 13:05:31 +0000 Subject: [PATCH] [arm] Fix rtl-checking failure in arm_print_value Noticed while debugging the arm bootstrap failure. 2019-10-03 Richard Sandiford gcc/ * config/arm/arm.c (arm_print_value): Use real_to_decimal to print CONST_DOUBLEs. From-SVN: r276508 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd550afd37e..ae3a0799f01 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-10-03 Richard Sandiford + + * config/arm/arm.c (arm_print_value): Use real_to_decimal + to print CONST_DOUBLEs. + 2019-10-03 Andrea Corallo * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 9f0975dc071..39e1a1ef9a2 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -16122,7 +16122,12 @@ arm_print_value (FILE *f, rtx x) return; case CONST_DOUBLE: - fprintf (f, "<0x%lx,0x%lx>", (long)XWINT (x, 2), (long)XWINT (x, 3)); + { + char fpstr[20]; + real_to_decimal (fpstr, CONST_DOUBLE_REAL_VALUE (x), + sizeof (fpstr), 0, 1); + fputs (fpstr, f); + } return; case CONST_VECTOR: -- 2.30.2