2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
* c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
with using HOST_WIDE_INT without truncation to 'int'
From-SVN: r214608
+2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
+
+ * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
+ with using HOST_WIDE_INT without truncation to 'int'
+
2014-08-22 Marek Polacek <polacek@redhat.com>
PR c++/62199
TREE_TYPE (t), style);
else
{
- int size = (int_size_in_bytes (t) / int_size_in_bytes (TREE_TYPE (t)));
- char buff[10];
- sprintf (buff, "[%d]", size);
+ char buff[23];
+ sprintf (buff, "["HOST_WIDE_INT_PRINT_DEC"]",
+ int_size_in_bytes (t)
+ / int_size_in_bytes (TREE_TYPE (t)));
ret_val = gen_type (concat (ret_val, buff, NULL),
TREE_TYPE (t), style);
}