Commit a62a0172 by Steven Bosscher Committed by Steven Bosscher

gengtype.c (walk_type): Produce `not equal to' compares for loop tests, instead of `less than'.

	* gengtype.c (walk_type): Produce `not equal to' compares for loop
	tests, instead of `less than'.

From-SVN: r94109
parent 0aa99dbb
2005-01-23 Steven Bosscher <stevenb@suse.de>
* gengtype.c (walk_type): Produce `not equal to' compares for loop
tests, instead of `less than'.
2005-01-23 Richard Sandiford <rsandifo@redhat.com>
* function.c (assign_parm_setup_block): When creating a new stack slot
......
......@@ -1679,7 +1679,7 @@ walk_type (type_p t, struct walk_type_data *d)
oprintf (d->of, "%*sif (%s != NULL) {\n", d->indent, "", d->val);
d->indent += 2;
oprintf (d->of, "%*ssize_t i%d;\n", d->indent, "", loopcounter);
oprintf (d->of, "%*sfor (i%d = 0; i%d < (size_t)(", d->indent, "",
oprintf (d->of, "%*sfor (i%d = 0; i%d != (size_t)(", d->indent, "",
loopcounter, loopcounter);
output_escaped_param (d, length, "length");
oprintf (d->of, "); i%d++) {\n", loopcounter);
......@@ -1715,7 +1715,7 @@ walk_type (type_p t, struct walk_type_data *d)
oprintf (d->of, "%*s{\n", d->indent, "");
d->indent += 2;
oprintf (d->of, "%*ssize_t i%d;\n", d->indent, "", loopcounter);
oprintf (d->of, "%*sfor (i%d = 0; i%d < (size_t)(", d->indent, "",
oprintf (d->of, "%*sfor (i%d = 0; i%d != (size_t)(", d->indent, "",
loopcounter, loopcounter);
if (length)
output_escaped_param (d, length, "length");
......
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