S/390: Downcase first letter of error messages.

gcc/testsuite/ChangeLog:

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.

gcc/ChangeLog:

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.

From-SVN: r244577
This commit is contained in:
Andreas Krebbel 2017-01-18 15:03:18 +00:00 committed by Andreas Krebbel
parent 96176bb3f1
commit f3981e7ecd
8 changed files with 35 additions and 16 deletions

View File

@ -1,3 +1,13 @@
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

View File

@ -466,7 +466,7 @@ s390_expand_overloaded_builtin (location_t loc,
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,
@ -856,7 +856,7 @@ s390_resolve_overloaded_builtin (location_t loc,
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;
}
@ -873,7 +873,7 @@ s390_resolve_overloaded_builtin (location_t loc,
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;

View File

@ -820,13 +820,13 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
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;
}
@ -846,7 +846,7 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
}
else if (fcode < S390_OVERLOADED_BUILTIN_VAR_OFFSET)
{
error ("Unresolved overloaded builtin");
error ("unresolved overloaded builtin");
return const0_rtx;
}
else
@ -981,7 +981,7 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
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++;
@ -11558,7 +11558,7 @@ s390_invalid_arg_for_unprototyped_fn (const_tree typelist, const_tree funcdecl,
&& (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);
}
@ -14938,7 +14938,7 @@ s390_valid_target_attribute_inner_p (tree args,
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;
}

View File

@ -11006,7 +11006,7 @@
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;

View File

@ -1,3 +1,10 @@
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

View File

@ -1,12 +1,14 @@
/* { 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:" } */
}

View File

@ -14,5 +14,5 @@ void a(void)
__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." } */
}

View File

@ -15,4 +15,4 @@ v2di bar3 (v2di a) { return foo1 (1, a); }
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" } */