Commit c512a6a0 by Basile Starynkevitch Committed by Basile Starynkevitch

gengtype.c (new_structure): Remove ad-hoc "location_s" processing.

2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
	* gengtype.c (new_structure): Remove ad-hoc "location_s"
	processing.

From-SVN: r165679
parent 5c822194
2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
* gengtype.c (new_structure): Remove ad-hoc "location_s"
processing.
2010-10-18 Richard Henderson <rth@redhat.com>
* simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
......@@ -689,12 +689,6 @@ new_structure (const char *name, int isunion, struct fileloc *pos,
type_p s = NULL;
lang_bitmap bitmap = get_lang_bitmap (pos->file);
/* temporary kludge - gengtype doesn't handle conditionals or
macros. Ignore any attempt to define struct location_s, unless
it is coming from this file (main() sets it up safely). */
if (!strcmp (name, "location_s") && !isunion && pos->file != this_file)
return find_structure (name, 0);
for (si = structures; si != NULL; si = si->next)
if (strcmp (name, si->u.s.tag) == 0 && UNION_P (si) == isunion)
{
......@@ -756,20 +750,6 @@ new_structure (const char *name, int isunion, struct fileloc *pos,
if (s->u.s.lang_struct)
s->u.s.lang_struct->u.s.bitmap |= bitmap;
/* Reset location_s's location to input.h so that we know where to
write out its mark routine. */
if (!strcmp (name, "location_s") && !isunion && pos->file == this_file)
{
size_t n;
for (n = 0; n < num_gt_files; n++)
if (!strcmp (gt_files[n] + strlen (gt_files[n]) - strlen ("input.h"),
"input.h"))
{
s->u.s.line.file = gt_files[n];
break;
}
}
return s;
}
......
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