Commit afb0f770 by Geoffrey Keating Committed by Geoffrey Keating

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
parent aaab35ae
2002-06-04 Geoffrey Keating <geoffk@redhat.com> 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. * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
* configure.in (config_gtfiles): New variable. * configure.in (config_gtfiles): New variable.
(all_gtfiles): Initialise from config_gtfiles. (all_gtfiles): Initialise from config_gtfiles.
......
...@@ -1546,7 +1546,7 @@ write_gc_root (f, v, type, name, has_length, line, if_marked) ...@@ -1546,7 +1546,7 @@ write_gc_root (f, v, type, name, has_length, line, if_marked)
tp->u.param_struct.stru->u.s.tag); tp->u.param_struct.stru->u.s.tag);
} }
else if (has_length else if (has_length
&& tp->kind == TYPE_POINTER) && (tp->kind == TYPE_POINTER || UNION_OR_STRUCT_P (tp)))
{ {
fprintf (f, " &gt_ggc_ma_%s", name); fprintf (f, " &gt_ggc_ma_%s", name);
} }
......
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