From e6baa273e0c6cb72f5959c98a1c43f4b0a5abc52 Mon Sep 17 00:00:00 2001 From: geoffk Date: Tue, 4 Jun 2002 22:25:29 +0000 Subject: * gengtype.c (write_gc_root): Don't unnecessarily prevent global variable-length arrays being roots. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54266 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 3 +++ gcc/gengtype.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 270e8dfafc9..7ca378be2e0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2002-06-04 Geoffrey Keating + * 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. diff --git a/gcc/gengtype.c b/gcc/gengtype.c index dda57e2d239..82d9a1166b1 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -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); } -- cgit v1.2.1