+2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
+ first letter of error messages.
+ (s390_resolve_overloaded_builtin): Likewise.
+ * config/s390/s390.c (s390_expand_builtin): Likewise.
+ (s390_invalid_arg_for_unprototyped_fn): Likewise.
+ (s390_valid_target_attribute_inner_p): Likewise.
+ * config/s390/s390.md ("tabort"): Likewise.
+
2017-01-18 Jakub Jelinek <jakub@redhat.com>
* gcc.target/s390/target-attribute/tattr-2.c: Add -fno-ipa-icf
case S390_OVERLOADED_BUILTIN_s390_vec_step:
if (TREE_CODE (TREE_TYPE ((*arglist)[0])) != VECTOR_TYPE)
{
- error_at (loc, "Builtin vec_step can only be used on vector types.");
+ error_at (loc, "builtin vec_step can only be used on vector types.");
return error_mark_node;
}
return build_int_cst (NULL_TREE,
if (bflags_for_builtin(ob_fcode) & B_INT)
{
error_at (loc,
- "Builtin %qF is for GCC internal use only.",
+ "builtin %qF is for GCC internal use only.",
ob_fndecl);
return error_mark_node;
}
if (ob_args_num != in_args_num)
{
error_at (loc,
- "Mismatch in number of arguments for builtin %qF. "
+ "mismatch in number of arguments for builtin %qF. "
"Expected: %d got %d", ob_fndecl,
ob_args_num, in_args_num);
return error_mark_node;
bflags = bflags_for_builtin (fcode);
if ((bflags & B_HTM) && !TARGET_HTM)
{
- error ("Builtin %qF is not supported without -mhtm "
+ error ("builtin %qF is not supported without -mhtm "
"(default with -march=zEC12 and higher).", fndecl);
return const0_rtx;
}
if ((bflags & B_VX) && !TARGET_VX)
{
- error ("Builtin %qF is not supported without -mvx "
+ error ("builtin %qF is not supported without -mvx "
"(default with -march=z13 and higher).", fndecl);
return const0_rtx;
}
}
else if (fcode < S390_OVERLOADED_BUILTIN_VAR_OFFSET)
{
- error ("Unresolved overloaded builtin");
+ error ("unresolved overloaded builtin");
return const0_rtx;
}
else
if (!insn_op->predicate (op[arity], insn_op->mode))
{
- error ("Invalid argument %d for builtin %qF", arity + 1, fndecl);
+ error ("invalid argument %d for builtin %qF", arity + 1, fndecl);
return const0_rtx;
}
arity++;
&& (funcdecl == NULL_TREE
|| (TREE_CODE (funcdecl) == FUNCTION_DECL
&& DECL_BUILT_IN_CLASS (funcdecl) != BUILT_IN_MD)))
- ? N_("Vector argument passed to unprototyped function")
+ ? N_("vector argument passed to unprototyped function")
: NULL);
}
else if (attrs[i].only_as_pragma && !force_pragma)
{
/* Value is not allowed for the target attribute. */
- error ("Value %qs is not supported by attribute %<target%>",
+ error ("value %qs is not supported by attribute %<target%>",
attrs[i].string);
return false;
}
if (CONST_INT_P (operands[0])
&& INTVAL (operands[0]) >= 0 && INTVAL (operands[0]) <= 255)
{
- error ("Invalid transaction abort code: " HOST_WIDE_INT_PRINT_DEC
+ error ("invalid transaction abort code: " HOST_WIDE_INT_PRINT_DEC
". Values in range 0 through 255 are reserved.",
INTVAL (operands[0]));
FAIL;
+2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ * gcc.target/s390/htm-builtins-compile-2.c (must_not_compile1):
+ (must_not_compile2): Downcase first letter of error messages.
+ * gcc.target/s390/target-attribute/tattr-13.c (b): Likewise.
+ * gcc.target/s390/vector/vec-abi-vararg-2.c: Likewise.
+
2017-01-18 Nathan Sidwell <nathan@acm.org>
PR c++/79091
/* { dg-do compile } */
/* { dg-options "-O3 -march=zEC12 -mzarch" } */
-void must_not_compile1 (void)
+void
+must_not_compile1 (void)
{
- __builtin_tabort (0); /* { dg-error "Invalid transaction abort code:" } */
+ __builtin_tabort (0); /* { dg-error "invalid transaction abort code:" } */
}
-void must_not_compile2 (void)
+void
+must_not_compile2 (void)
{
- __builtin_tabort (255); /* { dg-error "Invalid transaction abort code:" } */
+ __builtin_tabort (255); /* { dg-error "invalid transaction abort code:" } */
}
__attribute__ ((target("zvector","arch=z13")))
void
b(void)
-{ /* { dg-error "Value .zvector. is not supported by attribute .target." } */
+{ /* { dg-error "value .zvector. is not supported by attribute .target." } */
}
v2di bar4 (v2di a) { return foo3 (1, a); }
int bar5 (int a) { return foo4 (1, a); }
-int bar6 (v2di a) { return foo4 (1, a); } /* { dg-error "Vector argument passed to unprototyped function" } */
+int bar6 (v2di a) { return foo4 (1, a); } /* { dg-error "vector argument passed to unprototyped function" } */