hsa-dump.c (dump_hsa_symbol): Avoid out of scope access to buf.
From-SVN: r262931
+2018-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ hsa-dump.c (dump_hsa_symbol): Avoid out of scope access to buf.
+
2018-07-23 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
dump_hsa_symbol (FILE *f, hsa_symbol *symbol)
{
const char *name;
+ char buf[64];
if (symbol->m_name)
name = symbol->m_name;
else
{
- char buf[64];
sprintf (buf, "__%s_%i", hsa_seg_name (symbol->m_segment),
symbol->m_name_number);