Commit f3981e7e by Andreas Krebbel Committed by Andreas Krebbel

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
parent 96176bb3
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> 2017-01-18 Jakub Jelinek <jakub@redhat.com>
* gcc.target/s390/target-attribute/tattr-2.c: Add -fno-ipa-icf * gcc.target/s390/target-attribute/tattr-2.c: Add -fno-ipa-icf
......
...@@ -466,7 +466,7 @@ s390_expand_overloaded_builtin (location_t loc, ...@@ -466,7 +466,7 @@ s390_expand_overloaded_builtin (location_t loc,
case S390_OVERLOADED_BUILTIN_s390_vec_step: case S390_OVERLOADED_BUILTIN_s390_vec_step:
if (TREE_CODE (TREE_TYPE ((*arglist)[0])) != VECTOR_TYPE) 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 error_mark_node;
} }
return build_int_cst (NULL_TREE, return build_int_cst (NULL_TREE,
...@@ -856,7 +856,7 @@ s390_resolve_overloaded_builtin (location_t loc, ...@@ -856,7 +856,7 @@ s390_resolve_overloaded_builtin (location_t loc,
if (bflags_for_builtin(ob_fcode) & B_INT) if (bflags_for_builtin(ob_fcode) & B_INT)
{ {
error_at (loc, error_at (loc,
"Builtin %qF is for GCC internal use only.", "builtin %qF is for GCC internal use only.",
ob_fndecl); ob_fndecl);
return error_mark_node; return error_mark_node;
} }
...@@ -873,7 +873,7 @@ s390_resolve_overloaded_builtin (location_t loc, ...@@ -873,7 +873,7 @@ s390_resolve_overloaded_builtin (location_t loc,
if (ob_args_num != in_args_num) if (ob_args_num != in_args_num)
{ {
error_at (loc, 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, "Expected: %d got %d", ob_fndecl,
ob_args_num, in_args_num); ob_args_num, in_args_num);
return error_mark_node; return error_mark_node;
......
...@@ -820,13 +820,13 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, ...@@ -820,13 +820,13 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
bflags = bflags_for_builtin (fcode); bflags = bflags_for_builtin (fcode);
if ((bflags & B_HTM) && !TARGET_HTM) 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); "(default with -march=zEC12 and higher).", fndecl);
return const0_rtx; return const0_rtx;
} }
if ((bflags & B_VX) && !TARGET_VX) 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); "(default with -march=z13 and higher).", fndecl);
return const0_rtx; return const0_rtx;
} }
...@@ -846,7 +846,7 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, ...@@ -846,7 +846,7 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
} }
else if (fcode < S390_OVERLOADED_BUILTIN_VAR_OFFSET) else if (fcode < S390_OVERLOADED_BUILTIN_VAR_OFFSET)
{ {
error ("Unresolved overloaded builtin"); error ("unresolved overloaded builtin");
return const0_rtx; return const0_rtx;
} }
else else
...@@ -981,7 +981,7 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, ...@@ -981,7 +981,7 @@ s390_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
if (!insn_op->predicate (op[arity], insn_op->mode)) 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; return const0_rtx;
} }
arity++; arity++;
...@@ -11558,7 +11558,7 @@ s390_invalid_arg_for_unprototyped_fn (const_tree typelist, const_tree funcdecl, ...@@ -11558,7 +11558,7 @@ s390_invalid_arg_for_unprototyped_fn (const_tree typelist, const_tree funcdecl,
&& (funcdecl == NULL_TREE && (funcdecl == NULL_TREE
|| (TREE_CODE (funcdecl) == FUNCTION_DECL || (TREE_CODE (funcdecl) == FUNCTION_DECL
&& DECL_BUILT_IN_CLASS (funcdecl) != BUILT_IN_MD))) && DECL_BUILT_IN_CLASS (funcdecl) != BUILT_IN_MD)))
? N_("Vector argument passed to unprototyped function") ? N_("vector argument passed to unprototyped function")
: NULL); : NULL);
} }
...@@ -14938,7 +14938,7 @@ s390_valid_target_attribute_inner_p (tree args, ...@@ -14938,7 +14938,7 @@ s390_valid_target_attribute_inner_p (tree args,
else if (attrs[i].only_as_pragma && !force_pragma) else if (attrs[i].only_as_pragma && !force_pragma)
{ {
/* Value is not allowed for the target attribute. */ /* 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); attrs[i].string);
return false; return false;
} }
......
...@@ -11006,7 +11006,7 @@ ...@@ -11006,7 +11006,7 @@
if (CONST_INT_P (operands[0]) if (CONST_INT_P (operands[0])
&& INTVAL (operands[0]) >= 0 && INTVAL (operands[0]) <= 255) && 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.", ". Values in range 0 through 255 are reserved.",
INTVAL (operands[0])); INTVAL (operands[0]));
FAIL; 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> 2017-01-18 Nathan Sidwell <nathan@acm.org>
PR c++/79091 PR c++/79091
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O3 -march=zEC12 -mzarch" } */ /* { 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:" } */
} }
...@@ -14,5 +14,5 @@ void a(void) ...@@ -14,5 +14,5 @@ void a(void)
__attribute__ ((target("zvector","arch=z13"))) __attribute__ ((target("zvector","arch=z13")))
void void
b(void) b(void)
{ /* { dg-error "Value .zvector. is not supported by attribute .target." } */ { /* { dg-error "value .zvector. is not supported by attribute .target." } */
} }
...@@ -15,4 +15,4 @@ v2di bar3 (v2di a) { return foo1 (1, a); } ...@@ -15,4 +15,4 @@ v2di bar3 (v2di a) { return foo1 (1, a); }
v2di bar4 (v2di a) { return foo3 (1, a); } v2di bar4 (v2di a) { return foo3 (1, a); }
int bar5 (int a) { return foo4 (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" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment