re PR bootstrap/80867 (gnat bootstrap broken on powerpc64le-linux-gnu with -O3)
authorRichard Biener <rguenther@suse.de>
Mon, 29 Jan 2018 18:00:49 +0000 (18:00 +0000)
committerKelvin Nilsen <kelvin@gcc.gnu.org>
Mon, 29 Jan 2018 18:00:49 +0000 (18:00 +0000)
gcc/ChangeLog:

2018-01-29  Richard Biener <rguenther@suse.de>
    Kelvin Nilsen  <kelvin@gcc.gnu.org>

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 <kelvin@gcc.gnu.org>
From-SVN: r257158

gcc/ChangeLog
gcc/tree-vect-stmts.c

index a838edc448aae02522628ef4eac89cf304856606..3051305f2bdce72192b858348be8e16b211ff96a 100644 (file)
@@ -1,3 +1,11 @@
+2018-01-29  Richard Biener <rguenther@suse.de>
+           Kelvin Nilsen  <kelvin@gcc.gnu.org>
+
+       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 <cel@us.ibm.com>
 
        * doc/extend.tex: Fix typo in second arg in
index da76572ce45d9ddd5434e2dd4e886f4f15e0dc61..0a5c4cbacdaf4de624437be259f0cfa2ca850989 100644 (file)
@@ -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);
     }