mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 12:49:44 +08:00
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:
parent
aaab35ae40
commit
afb0f770f4
@ -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.
|
||||
|
@ -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, " >_ggc_ma_%s", name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user