Clear more useless flags
Jan Hubicka
hubicka@ucw.cz
Wed Nov 7 15:08:00 GMT 2018
> > + /* TREE_PUBLIC is used to tell if type is anonymous. */
> > + DECL_EXTERNAL (decl) = 0;
> > + TYPE_DECL_SUPPRESS_DEBUG (decl) = 0;
>
> DECL_EXTERNAL and TYPE_DECL_SUPPRESS_DEBUG map to the same decl_flag_1 ...
> so I'd say you should use TYPE_DECL_SUPPRESS_DEBUG only here.
I see, print_tree prints both that is how I added both. Probably
something to fix :)
thanks!
Honza
>
> > DECL_INITIAL (decl) = NULL_TREE;
> > DECL_ORIGINAL_TYPE (decl) = NULL_TREE;
> > + DECL_MODE (decl) = VOIDmode;
> > TREE_TYPE (decl) = void_type_node;
> > SET_DECL_ALIGN (decl, 0);
> > }
>
> OK with that change.
>
> Thanks,
> Richard.
More information about the Gcc-patches
mailing list