AArch32: fix bootstrap failure
authorAlex Coplan <Alex.Coplan@arm.com>
Thu, 7 May 2020 10:34:06 +0000 (11:34 +0100)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 7 May 2020 10:34:06 +0000 (11:34 +0100)
The attached patch fixes a bootstrap failure on AArch32 introduced by
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=308bc496884706af4b3077171cbac684c7a6f7c6

This makes the declaration of arm_add_stmt_cost match the definition, and removes the redundant
class keyword from the definition.

2020-05-07  Alex Coplan  <alex.coplan@arm.com>

        * config/arm/arm.c (arm_add_stmt_cost): Fix declaration, remove class
from definition.

gcc/ChangeLog
gcc/config/arm/arm.c

index c1bda34878f99e0b343771ec26c02690bcf37593..a48f6a965d5ad4ab43dab709192e2cc6174e6628 100644 (file)
@@ -1,3 +1,8 @@
+2020-05-07  Alex Coplan  <alex.coplan@arm.com>
+
+       * config/arm/arm.c (arm_add_stmt_cost): Fix declaration, remove class
+       from definition.
+
 2020-05-07  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/57359
index bbd7dc5316c52513626150e89c9b12700606834b..d50781953c01b118769167356b3862be9d9f817b 100644 (file)
@@ -306,7 +306,7 @@ static bool aarch_macro_fusion_pair_p (rtx_insn*, rtx_insn*);
 static int arm_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
                                           tree vectype,
                                           int misalign ATTRIBUTE_UNUSED);
-static unsigned arm_add_stmt_cost (void *data, int count,
+static unsigned arm_add_stmt_cost (vec_info *vinfo, void *data, int count,
                                   enum vect_cost_for_stmt kind,
                                   struct _stmt_vec_info *stmt_info,
                                   int misalign,
@@ -12131,7 +12131,7 @@ arm_builtin_vectorization_cost (enum vect_cost_for_stmt type_of_cost,
 /* Implement targetm.vectorize.add_stmt_cost.  */
 
 static unsigned
-arm_add_stmt_cost (class vec_info *vinfo, void *data, int count,
+arm_add_stmt_cost (vec_info *vinfo, void *data, int count,
                   enum vect_cost_for_stmt kind,
                   struct _stmt_vec_info *stmt_info, int misalign,
                   enum vect_cost_model_location where)