https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95581
--- Comment #10 from Bill Seurer <seurer at linux dot vnet.ibm.com> --- I think this will work but haven't had a chance to try it except on the one power 7 system. diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c index 817a14c9c..37eb31222 100644 --- a/gcc/config/rs6000/rs6000-call.c +++ b/gcc/config/rs6000/rs6000-call.c @@ -12454,6 +12454,10 @@ altivec_init_builtins (void) = build_function_type_list (opaque_V4SI_type_node, long_integer_type_node, pcvoid_type_node, NULL_TREE); + tree v16qi_ftype_pcvoid + = build_function_type_list (V16QI_type_node, + pcvoid_type_node, + NULL_TREE); tree v16qi_ftype_long_pcvoid = build_function_type_list (V16QI_type_node, long_integer_type_node, pcvoid_type_node, @@ -12856,7 +12860,7 @@ altivec_init_builtins (void) targetm.vectorize.builtin_mask_for_load. */ decl = add_builtin_function ("__builtin_altivec_mask_for_load", - v16qi_ftype_long_pcvoid, + v16qi_ftype_pcvoid, ALTIVEC_BUILTIN_MASK_FOR_LOAD, BUILT_IN_MD, NULL, NULL_TREE); TREE_READONLY (decl) = 1;