GCN: Make "gang-private data-share memory exhausted" error more verbose

[...]: error: 512 bytes of gang-private data-share memory exhausted (increase with ‘-mgang-private-size=560’, for example)

	gcc/
	* config/gcn/gcn.cc (gcn_print_lds_decl): Make "gang-private
	data-share memory exhausted" error more verbose.
This commit is contained in:
Thomas Schwinge 2022-04-26 13:05:19 +02:00
parent b683a0e635
commit 2579d6124d

View File

@ -5588,8 +5588,9 @@ gcn_print_lds_decl (FILE *f, tree var)
fprintf (f, "%u", gang_private_hwm);
gang_private_hwm += size;
if (gang_private_hwm > gang_private_size_opt)
error ("gang-private data-share memory exhausted (increase with "
"%<-mgang-private-size=<number>%>)");
error ("%d bytes of gang-private data-share memory exhausted"
" (increase with %<-mgang-private-size=%d%>, for example)",
gang_private_size_opt, gang_private_hwm);
}
}