From d5a216fa21f6c67e75a91b7063d1767cff00138b Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 2 Mar 2017 10:19:28 +0100 Subject: re PR tree-optimization/79345 (passing yet-uninitialized member as argument to base class constructor should warn (-Wunitialized)) PR tree-optimization/79345 * gensupport.h (struct pattern_stats): Add min_scratch_opno field. * gensupport.c (get_pattern_stats_1) : Update it. (get_pattern_stats): Initialize it. * genemit.c (gen_expand): Verify match_scratch numbers come after match_operand/match_dup numbers. * config/i386/i386.md (mul3_highpart): Swap match_dup and match_scratch numbers. * config/i386/sse.md (avx2_gathersi, avx2_gatherdi): Likewise. * config/s390/s390.md (trunctdsd2): Likewise. From-SVN: r245833 --- gcc/gensupport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/gensupport.h') diff --git a/gcc/gensupport.h b/gcc/gensupport.h index 693166f..5db6b0f 100644 --- a/gcc/gensupport.h +++ b/gcc/gensupport.h @@ -199,7 +199,8 @@ struct pattern_stats /* The largest match_dup, match_op_dup or match_par_dup number found. */ int max_dup_opno; - /* The largest match_scratch number found. */ + /* The smallest and largest match_scratch number found. */ + int min_scratch_opno; int max_scratch_opno; /* The number of times match_dup, match_op_dup or match_par_dup appears -- cgit v1.1