From: rsandifo Date: Thu, 3 Oct 2019 13:05:31 +0000 (+0000) Subject: [arm] Fix rtl-checking failure in arm_print_value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1337f9b2f76ff42e71279092268d655ab9394bc;p=thirdparty%2Fgcc.git [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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276508 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd550afd37ef..ae3a0799f01c 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 9f0975dc0710..39e1a1ef9a28 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: