From cfbbceed1dad352e5be9e2af7b665ae7d9d2537e Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 5 May 2020 11:25:00 +0200 Subject: [PATCH] fix build of targets not implementing add_stmt_cost 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/targhooks.h index 72f3064e8f8..9704d23f1db 100644 --- a/gcc/targhooks.h +++ b/gcc/targhooks.h @@ -118,7 +118,8 @@ extern opt_machine_mode default_vectorize_related_mode (machine_mode, extern opt_machine_mode default_get_mask_mode (machine_mode); extern bool default_empty_mask_is_expensive (unsigned); extern void *default_init_cost (class loop *); -extern unsigned default_add_stmt_cost (void *, int, enum vect_cost_for_stmt, +extern unsigned default_add_stmt_cost (class vec_info *, void *, int, + enum vect_cost_for_stmt, class _stmt_vec_info *, int, enum vect_cost_model_location); extern void default_finish_cost (void *, unsigned *, unsigned *, unsigned *);