aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog7
-rw-r--r--gcc/c-family/c-pretty-print.c27
2 files changed, 7 insertions, 27 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index aba0b14..850b6f8 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,10 @@
+2016-12-08 Martin Sebor <msebor@redhat.com>
+
+ PR c/78165
+ * c-pretty-print (pp_c_integer_constant): Avoid formatting type
+ suffix.
+gcc/testsuite/ChangeLog:
+
2016-12-07 Martin Sebor <msebor@redhat.com>
PR c/53562
diff --git a/gcc/c-family/c-pretty-print.c b/gcc/c-family/c-pretty-print.c
index 7ad5900..c32d0a0 100644
--- a/gcc/c-family/c-pretty-print.c
+++ b/gcc/c-family/c-pretty-print.c
@@ -904,15 +904,6 @@ pp_c_void_constant (c_pretty_printer *pp)
static void
pp_c_integer_constant (c_pretty_printer *pp, tree i)
{
- int idx;
-
- /* We are going to compare the type of I to other types using
- pointer comparison so we need to use its canonical type. */
- tree type =
- TYPE_CANONICAL (TREE_TYPE (i))
- ? TYPE_CANONICAL (TREE_TYPE (i))
- : TREE_TYPE (i);
-
if (tree_fits_shwi_p (i))
pp_wide_integer (pp, tree_to_shwi (i));
else if (tree_fits_uhwi_p (i))
@@ -929,24 +920,6 @@ pp_c_integer_constant (c_pretty_printer *pp, tree i)
print_hex (wi, pp_buffer (pp)->digit_buffer);
pp_string (pp, pp_buffer (pp)->digit_buffer);
}
- if (TYPE_UNSIGNED (type))
- pp_character (pp, 'u');
- if (type == long_integer_type_node || type == long_unsigned_type_node)
- pp_character (pp, 'l');
- else if (type == long_long_integer_type_node
- || type == long_long_unsigned_type_node)
- pp_string (pp, "ll");
- else for (idx = 0; idx < NUM_INT_N_ENTS; idx ++)
- if (int_n_enabled_p[idx])
- {
- char buf[2+20];
- if (type == int_n_trees[idx].signed_type
- || type == int_n_trees[idx].unsigned_type)
- {
- sprintf (buf, "I%d", int_n_data[idx].bitsize);
- pp_string (pp, buf);
- }
- }
}
/* Print out a CHARACTER literal. */