From: Andreas Krebbel Date: Wed, 18 Jan 2017 15:03:18 +0000 (+0000) Subject: S/390: Downcase first letter of error messages. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3981e7ecd207d68bdb246587c7ca1c71a083e85;p=gcc.git S/390: Downcase first letter of error messages. gcc/testsuite/ChangeLog: 2017-01-18 Andreas Krebbel * 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 * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 05dda31335a..43ab6209971 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2017-01-18 Andreas Krebbel + + * 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 * gcc.target/s390/target-attribute/tattr-2.c: Add -fno-ipa-icf diff --git a/gcc/config/s390/s390-c.c b/gcc/config/s390/s390-c.c index a398d0f721b..bf842696136 100644 --- a/gcc/config/s390/s390-c.c +++ b/gcc/config/s390/s390-c.c @@ -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; diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index bfb28650790..fe65846a4f2 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -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 %", + error ("value %qs is not supported by attribute %", attrs[i].string); return false; } diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md index 427f976ad54..ee7ca7398d4 100644 --- a/gcc/config/s390/s390.md +++ b/gcc/config/s390/s390.md @@ -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; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6822d3dcd1e..6cde4879387 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2017-01-18 Andreas Krebbel + + * 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 PR c++/79091 diff --git a/gcc/testsuite/gcc.target/s390/htm-builtins-compile-2.c b/gcc/testsuite/gcc.target/s390/htm-builtins-compile-2.c index 67d76a6d3d3..53c8f5b2870 100644 --- a/gcc/testsuite/gcc.target/s390/htm-builtins-compile-2.c +++ b/gcc/testsuite/gcc.target/s390/htm-builtins-compile-2.c @@ -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:" } */ } diff --git a/gcc/testsuite/gcc.target/s390/target-attribute/tattr-13.c b/gcc/testsuite/gcc.target/s390/target-attribute/tattr-13.c index 07e0cc9ff5f..5bec108b82b 100644 --- a/gcc/testsuite/gcc.target/s390/target-attribute/tattr-13.c +++ b/gcc/testsuite/gcc.target/s390/target-attribute/tattr-13.c @@ -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." } */ } diff --git a/gcc/testsuite/gcc.target/s390/vector/vec-abi-vararg-2.c b/gcc/testsuite/gcc.target/s390/vector/vec-abi-vararg-2.c index 8df4d585c44..7dd81ef6a15 100644 --- a/gcc/testsuite/gcc.target/s390/vector/vec-abi-vararg-2.c +++ b/gcc/testsuite/gcc.target/s390/vector/vec-abi-vararg-2.c @@ -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" } */