+2017-11-17 Henry Linjamäki <henry.linjamaki@parmance.com>
+
+ * brigfrontend/brig-util.cc: Fix sprintf format string type mismatch
+ on 32b machines.
+
2017-11-16 Henry Linjamäki <henry.linjamaki@parmance.com>
Change internal representation of HSA registers. Instead
}
std::string
-gccbrig_hsa_reg_name_from_id (size_t reg_hash)
+gccbrig_hsa_reg_name_from_id (size_t reg_id)
{
char reg_name[32];
+ long unsigned int reg_hash = (long unsigned int) reg_id;
if (reg_hash < BRIG_2_TREE_HSAIL_C_REG_COUNT)
{
sprintf (reg_name, "$c%lu", reg_hash);
reg_use_it end_it2 = info.m_type_refs.end ();
for (reg_use_it it2 = begin_it2; it2 != end_it2; it2++)
{
- fprintf (dump, "(%lu) ", it2->second);
+ fprintf (dump, "(%lu) ", (long unsigned int) it2->second);
print_node_brief (dump, "", it2->first, 0);
fprintf (dump, "\n");
}