diff options
Diffstat (limited to 'gcc/c-family/c-pretty-print.c')
-rw-r--r-- | gcc/c-family/c-pretty-print.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/c-family/c-pretty-print.c b/gcc/c-family/c-pretty-print.c index 374bd1a..90428ca 100644 --- a/gcc/c-family/c-pretty-print.c +++ b/gcc/c-family/c-pretty-print.c @@ -1045,6 +1045,16 @@ pp_c_floating_constant (c_pretty_printer *pp, tree r) pp_string (pp, "dd"); else if (TREE_TYPE (r) == dfloat32_type_node) pp_string (pp, "df"); + else if (TREE_TYPE (r) != double_type_node) + for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++) + if (TREE_TYPE (r) == FLOATN_NX_TYPE_NODE (i)) + { + pp_character (pp, 'f'); + pp_decimal_int (pp, floatn_nx_types[i].n); + if (floatn_nx_types[i].extended) + pp_character (pp, 'x'); + break; + } } /* Print out a FIXED value as a decimal-floating-constant. */ |