Re: [PATCH] fix build of targets not implementing add_stmt_cost

2020-05-05 Thread Richard Biener
On Tue, 5 May 2020, Alexander Monakov wrote: > > > On Tue, 5 May 2020, Richard Biener wrote: > > > > > Pushed as obvious. > > > > C++ makes mismatched prototype and implementation OK. > > (because of overloads) Yes, of course. I'll also try to remember to compile at least one unaffected cc

Re: [PATCH] fix build of targets not implementing add_stmt_cost

2020-05-05 Thread Alexander Monakov via Gcc-patches
On Tue, 5 May 2020, Richard Biener wrote: > > Pushed as obvious. > > C++ makes mismatched prototype and implementation OK. (because of overloads) I think this would have been caught if GCC enabled -Wmissing-declarations during bootstrap, and the main reason we have this problem is that the

[PATCH] fix build of targets not implementing add_stmt_cost

2020-05-05 Thread Richard Biener
Pushed as obvious. C++ makes mismatched prototype and implementation OK. 2020-05-05 Richard Biener * targhooks.h (default_add_stmt_cost): Add vec_info * parameter. --- gcc/targhooks.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/targhooks.h b/gcc/targho