re PR ada/53996 (format string issue in gcc-interface/utils.c)

PR ada/53996
	* gcc-interface/utils.c (gnat_type_for_size): Use %u in lieu of %d.

Co-Authored-By: Martin Ettl <ettl.martin@gmx.de>

From-SVN: r194520
This commit is contained in:
Eric Botcazou 2012-12-15 17:50:49 +00:00 committed by Eric Botcazou
parent e88ebf869e
commit c3d79c606a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-12-15 Eric Botcazou <ebotcazou@adacore.com>
Martin Ettl <ettl.martin@gmx.de>
PR ada/53996
* gcc-interface/utils.c (gnat_type_for_size): Use %u in lieu of %d.
2012-12-11 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/Make-lang.in (RTS_DIR): Define only if Ada is enabled.

View File

@ -2797,7 +2797,7 @@ gnat_type_for_size (unsigned precision, int unsignedp)
if (!TYPE_NAME (t))
{
sprintf (type_name, "%sSIGNED_%d", unsignedp ? "UN" : "", precision);
sprintf (type_name, "%sSIGNED_%u", unsignedp ? "UN" : "", precision);
TYPE_NAME (t) = get_identifier (type_name);
}