Commit c3d79c60 by Eric Botcazou Committed by Eric Botcazou

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
parent e88ebf86
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> 2012-12-11 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/Make-lang.in (RTS_DIR): Define only if Ada is enabled. * gcc-interface/Make-lang.in (RTS_DIR): Define only if Ada is enabled.
......
...@@ -2797,7 +2797,7 @@ gnat_type_for_size (unsigned precision, int unsignedp) ...@@ -2797,7 +2797,7 @@ gnat_type_for_size (unsigned precision, int unsignedp)
if (!TYPE_NAME (t)) 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); TYPE_NAME (t) = get_identifier (type_name);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment