Message ID | e1ed9c4a-8d5f-7f8d-e919-a90b3b62af32@suse.cz |
---|---|
State | New |
Headers | show |
Series | Add operator new/delete to cgraph_node::dump. | expand |
> Hi. > > The patch is about new/delete operator flags that I would > like to see in cgraph::dump. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? OK, Honza > Thanks, > Martin > > gcc/ChangeLog: > > 2019-08-05 Martin Liska <mliska@suse.cz> > > * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P > and DECL_IS_OPERATOR_DELETE_P. > --- > gcc/cgraph.c | 5 +++++ > 1 file changed, 5 insertions(+) > > > diff --git a/gcc/cgraph.c b/gcc/cgraph.c > index bed407e5766..ed46d81a513 100644 > --- a/gcc/cgraph.c > +++ b/gcc/cgraph.c > @@ -2080,6 +2080,11 @@ cgraph_node::dump (FILE *f) > fprintf (f, " optimize_size"); > if (parallelized_function) > fprintf (f, " parallelized_function"); > + if (DECL_IS_OPERATOR_NEW_P (decl)) > + fprintf (f, " operator_new"); > + if (DECL_IS_OPERATOR_DELETE_P (decl)) > + fprintf (f, " operator_delete"); > + > > fprintf (f, "\n"); > >
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index bed407e5766..ed46d81a513 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -2080,6 +2080,11 @@ cgraph_node::dump (FILE *f) fprintf (f, " optimize_size"); if (parallelized_function) fprintf (f, " parallelized_function"); + if (DECL_IS_OPERATOR_NEW_P (decl)) + fprintf (f, " operator_new"); + if (DECL_IS_OPERATOR_DELETE_P (decl)) + fprintf (f, " operator_delete"); + fprintf (f, "\n");