gengtype.c (write_gc_root): Don't unnecessarily prevent global variable-length arrays being roots.

* gengtype.c (write_gc_root): Don't unnecessarily prevent
	global variable-length arrays being roots.

From-SVN: r54266
This commit is contained in:
Geoffrey Keating 2002-06-04 22:25:29 +00:00 committed by Geoffrey Keating
parent aaab35ae40
commit afb0f770f4
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2002-06-04 Geoffrey Keating <geoffk@redhat.com>
* gengtype.c (write_gc_root): Don't unnecessarily prevent
global variable-length arrays being roots.
* config.gcc (powerpc-*-darwin*): Set config_gtfiles.
* configure.in (config_gtfiles): New variable.
(all_gtfiles): Initialise from config_gtfiles.

View File

@ -1546,7 +1546,7 @@ write_gc_root (f, v, type, name, has_length, line, if_marked)
tp->u.param_struct.stru->u.s.tag);
}
else if (has_length
&& tp->kind == TYPE_POINTER)
&& (tp->kind == TYPE_POINTER || UNION_OR_STRUCT_P (tp)))
{
fprintf (f, " &gt_ggc_ma_%s", name);
}