Commit 6d8dd940 by Andreas Jaeger

gengtype.c (adjust_field_rtx_def): Cast variables of type size_t to unsigned…

gengtype.c (adjust_field_rtx_def): Cast variables of type size_t to unsigned long, adjust printf format string.

	* gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
	to unsigned long, adjust printf format string.
	(output_mangled_typename): Likewise.

From-SVN: r57804
parent 191fe2bb
2002-10-03 Andreas Jaeger <aj@suse.de>
* gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
to unsigned long, adjust printf format string.
(output_mangled_typename): Likewise.
2002-10-03 Jason Thorpe <thorpej@wasabisystems.com>
* config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
......
......@@ -528,8 +528,8 @@ adjust_field_rtx_def (t, opt)
else
{
error_at_line (&lexer_line,
"rtx type `%s' has `0' in position %d, can't handle",
rtx_name[i], aindex);
"rtx type `%s' has `0' in position %lu, can't handle",
rtx_name[i], (unsigned long) aindex);
t = &string_type;
subname = "rtint";
}
......@@ -571,9 +571,9 @@ adjust_field_rtx_def (t, opt)
default:
error_at_line (&lexer_line,
"rtx type `%s' has `%c' in position %d, can't handle",
"rtx type `%s' has `%c' in position %lu, can't handle",
rtx_name[i], rtx_format[i][aindex],
aindex);
(unsigned long)aindex);
t = &string_type;
subname = "rtint";
break;
......@@ -582,7 +582,8 @@ adjust_field_rtx_def (t, opt)
subfields = xmalloc (sizeof (*subfields));
subfields->next = old_subf;
subfields->type = t;
subfields->name = xasprintf ("[%d].%s", aindex, subname);
subfields->name = xasprintf ("[%lu].%s", (unsigned long)aindex,
subname);
subfields->line.file = __FILE__;
subfields->line.line = __LINE__;
if (t == note_union_tp)
......@@ -1452,7 +1453,7 @@ output_mangled_typename (of, t)
case TYPE_STRUCT:
case TYPE_UNION:
case TYPE_LANG_STRUCT:
oprintf (of, "%d%s", strlen (t->u.s.tag), t->u.s.tag);
oprintf (of, "%lu%s", (unsigned long) strlen (t->u.s.tag), t->u.s.tag);
break;
case TYPE_PARAM_STRUCT:
{
......
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