Hello. Following patch fixes asan bootstrap, as mentioned in the PR.
Ready to be installed? Thanks, Martin
>From 6a3d1b85e124751fdb804ae86596d30ea98b54af Mon Sep 17 00:00:00 2001 From: marxin <mli...@suse.cz> Date: Thu, 19 Jan 2017 10:25:55 +0100 Subject: [PATCH] Fix false positive for -Walloc-size-larger-than (PR bootstrap/79132). gcc/ChangeLog: 2017-01-19 Martin Liska <mli...@suse.cz> PR bootstrap/79132 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert that would prevent us to call alloca with -1 as argument. --- gcc/tree-ssa-reassoc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 503edd3870d..4a796f48864 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -4407,6 +4407,7 @@ rewrite_expr_tree_parallel (gassign *stmt, int width, { enum tree_code opcode = gimple_assign_rhs_code (stmt); int op_num = ops.length (); + gcc_assert (op_num > 0); int stmt_num = op_num - 1; gimple **stmts = XALLOCAVEC (gimple *, stmt_num); int op_index = op_num - 1; -- 2.11.0