From 7672aa9bc19e2444c3effa2f12274d60022f7d3c Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 29 Jan 2018 18:00:49 +0000 Subject: [PATCH] re PR bootstrap/80867 (gnat bootstrap broken on powerpc64le-linux-gnu with -O3) gcc/ChangeLog: 2018-01-29 Richard Biener Kelvin Nilsen PR bootstrap/80867 * tree-vect-stmts.c (vectorizable_call): Don't call targetm.vectorize_builtin_md_vectorized_function if callee is NULL. Co-Authored-By: Kelvin Nilsen From-SVN: r257158 --- gcc/ChangeLog | 8 ++++++++ gcc/tree-vect-stmts.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a838edc448a..3051305f2bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2018-01-29 Richard Biener + Kelvin Nilsen + + PR bootstrap/80867 + * tree-vect-stmts.c (vectorizable_call): Don't call + targetm.vectorize_builtin_md_vectorized_function if callee is + NULL. + 2018-01-22 Carl Love * doc/extend.tex: Fix typo in second arg in diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index da76572ce45..0a5c4cbacda 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -3159,7 +3159,7 @@ vectorizable_call (gimple *gs, gimple_stmt_iterator *gsi, gimple **vec_stmt, if (cfn != CFN_LAST) fndecl = targetm.vectorize.builtin_vectorized_function (cfn, vectype_out, vectype_in); - else + else if (callee) fndecl = targetm.vectorize.builtin_md_vectorized_function (callee, vectype_out, vectype_in); } -- 2.30.2