Hello. Attached patch is very simple and does $subject.
Thanks, Martin
>From ad7053eb82a354dce6a5460a3b3c5f1dba939094 Mon Sep 17 00:00:00 2001 From: mliska <mli...@suse.cz> Date: Thu, 25 Jun 2015 13:58:51 +0200 Subject: [PATCH 2/2] Remove assumption that each translation unit must have a kernel. gcc/ChangeLog: 2015-06-25 Martin Liska <mli...@suse.cz> * hsa-brig.c (hsa_output_kernel_mapping): Remove assert. --- gcc/hsa-brig.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/hsa-brig.c b/gcc/hsa-brig.c index ff697ee..fcef710 100644 --- a/gcc/hsa-brig.c +++ b/gcc/hsa-brig.c @@ -1637,7 +1637,6 @@ static void hsa_output_kernel_mapping (tree brig_decl) { unsigned map_count = hsa_get_number_decl_kernel_mappings (); - gcc_assert (map_count > 0); tree int_num_of_kernels; int_num_of_kernels = build_int_cst (integer_type_node, (int) map_count); -- 2.1.4