diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-04 06:08:19 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-04 06:08:19 +0000 |
commit | e72117bc677e0d5339e3bc9228a284e4121854d2 (patch) | |
tree | 3a830ed2c0e7f65843b748e04b6f9cdc3f84a688 /gcc/gengtype.c | |
parent | 649ecb2cc4b12566680fc4915466b98cafe89023 (diff) | |
download | gcc-e72117bc677e0d5339e3bc9228a284e4121854d2.tar.gz |
* gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
to unsigned long, adjust printf format string.
(output_mangled_typename): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57804 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype.c')
-rw-r--r-- | gcc/gengtype.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/gengtype.c b/gcc/gengtype.c index ffb5b4bc754..c95cba7be6d 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -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: { |