+2017-01-30 Jakub Jelinek <jakub@redhat.com>
+
+ * brigfrontend/brig-code-entry-handler.cc
+ (brig_code_entry_handler::get_tree_cst_for_hsa_operand): For %lu
+ cast size_t arguments to unsigned long.
+
2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
* config-lang.in: Removed stale target-libbrig reference.
if (bytes_left < scalar_element_size * element_count)
fatal_error (UNKNOWN_LOCATION,
"Not enough bytes left for the initializer "
- "(%lu need %lu).",
- bytes_left, scalar_element_size * element_count);
+ "(%lu need %lu).", (unsigned long) bytes_left,
+ (unsigned long) (scalar_element_size
+ * element_count));
vec<constructor_elt, va_gc> *vec_els = NULL;
for (size_t i = 0; i < element_count; ++i)
if (bytes_left < scalar_element_size)
fatal_error (UNKNOWN_LOCATION,
"Not enough bytes left for the initializer "
- "(%lu need %lu).",
- bytes_left, scalar_element_size);
+ "(%lu need %lu).", (unsigned long) bytes_left,
+ (unsigned long) scalar_element_size);
cst = build_tree_cst_element (scalar_element_type, next_data);
bytes_left -= scalar_element_size;
next_data += scalar_element_size;