Created attachment 27813 [details] proposed patch Please review the attached patch. It fixes a format string issue in file: /gcc/gcc/ada/gcc-interface/utils.c This patch replaces the format string in an sprintf expression from %d to %u: sprintf (type_name, "%sSIGNED_%d", unsignedp ? "UN" : "", precision); because the variable precision is of type unsigned, which requires %u. Best regards Ettl Martin
Confirmed, will apply.
Author: ebotcazou Date: Sat Dec 15 17:50:49 2012 New Revision: 194520 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194520 Log: PR ada/53996 * gcc-interface/utils.c (gnat_type_for_size): Use %u in lieu of %d. Modified: trunk/gcc/ada/ChangeLog trunk/gcc/ada/gcc-interface/utils.c
Thanks for reporting the issue.