public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kyrill Tkachov <kyrylo.tkachov@foss.arm.com>
To: David Malcolm <dmalcolm@redhat.com>,
	Jakub Jelinek <jakub@redhat.com>,
	 Richard Earnshaw <richard.earnshaw@arm.com>,
	Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Cc: gcc-patches@gcc.gnu.org, roland.illig@gmx.de,
	 Joseph Myers <joseph@codesourcery.com>
Subject: Re: [PATCH 3/7] Remove trailing period from various diagnostic messages (PR translation/79923)
Date: Mon, 13 Mar 2017 09:01:00 -0000	[thread overview]
Message-ID: <58C65FDB.6000501@foss.arm.com> (raw)
In-Reply-To: <1489188964.28956.2.camel@redhat.com>


On 10/03/17 23:36, David Malcolm wrote:
> On Fri, 2017-03-10 at 09:24 +0000, Kyrill Tkachov wrote:
>> On 10/03/17 06:24, Jakub Jelinek wrote:
>>> On Thu, Mar 09, 2017 at 12:45:25PM -0500, David Malcolm wrote:
>>>> gcc/ChangeLog:
>>>> 	PR translation/79923
>>>> 	* auto-profile.c (get_combined_location): Convert leading
>>>> 	character of diagnostics to lower case and remove trailing
>>>> period.
>>>> 	(read_profile): Likewise for various diagnostics.
>>>> 	* config/arm/arm-builtins.c (arm_expand_builtin): Remove
>>>> trailing
>>>> 	period from various diagnostics.
>>>> 	* config/arm/arm.c (arm_option_override): Likewise.
>>>> 	* config/msp430/msp430.c (msp430_expand_delay_cycles):
>>>> Likewise.
>>>> 	(msp430_expand_delay_cycles): Likewise.
>>> Mostly ok, but for
>>>
>>>> --- a/gcc/config/arm/arm-builtins.c
>>>> +++ b/gcc/config/arm/arm-builtins.c
>>>> @@ -2990,60 +2990,60 @@ arm_expand_builtin (tree exp,
>>>>    	      && (imm < 0 || imm > 32))
>>>>    	    {
>>>>    	      if (fcode == ARM_BUILTIN_WRORHI)
>>>> -		error ("the range of count should be in 0 to 32.
>>>>    please check the intrinsic _mm_rori_pi16 in code.");
>>>> +		error ("the range of count should be in 0 to 32.
>>>>    please check the intrinsic _mm_rori_pi16 in code");
>>> I wonder if this shouldn't use a semicolon space in the middle
>>> instead of dot space space (many times in the same file).
>> Is there a convention in GCC to use semicolons?
>> I'm okay with changing it to a semicolon (it's slightly better IMO)
>> as long as it's consistent
>> with the style GCC uses.
>>
>>> Also, for the benefit of translators, this might be better done as
>>> 		error ("the range of count should be in 0 to 32; please
>>> check the intrinsic %s in code",
>>> 		       "_mm_rori_pi16");
>>> so that there are fewer of these messages.
>>> Adding some ARM folks on this.
>> These iWMMXt builtins haven't been touched in ages and could do with
>> some TLC in general.
>> For example, I'm not a fan of having all these "please check the
>> intrinsic ..." messages.
>> If we've got a reference to the tree we're expanding, isn't there
>> some kind of error function
>> that will point to the location in the source that's causing the
>> error? I'd rather use that than
>> hardcoding the intrinsic names. This would also allow us to collapse
>> all these
>> if (fcode == <...>)
>>     error (...);
>> else if (fcode == <...>)
>>     error (...);
>> else if ...
>>
>> constructs.
>>
>> While we're at it:
>>
>>    	      if (fcode == ARM_BUILTIN_WSRLHI)
>> -		error ("the count should be no less than 0.  please
>> check the intrinsic _mm_srli_pi16 in code.");
>> +		error ("the count should be no less than 0.  please
>> check the intrinsic _mm_srli_pi16 in code");
>>
>>
>> Let's use "the count should be a non-negative integer" to be
>> consistent with the error reporting
>> for UInteger error messages.
>>
>>> Perhaps commit everything except arm-builtins.c separately and deal
>>> with
>>> this part with the ARM folks?
>> I agree. David, if you want to clean up the error reporting in these
>> intrinsics as a separate patch I'd be grateful.
>> Otherwise, could you please open a bugzilla ticket so we can track
>> this?
> I started looking at this, but realized I don't have the arm ISA
> expertise to touch this code (sorry), so I filed
>    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79995
> instead.

No worries, thanks for looking at this in the first place.

Kyrill

>

  reply	other threads:[~2017-03-13  9:01 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09 17:15 [PATCH 0/7] Various i18n fixes (and questions) David Malcolm
2017-03-09 17:15 ` [PATCH 7/7] Simplify uses of "%<%s%>" to "%qs" (PR translation/79848) David Malcolm
2017-03-10  6:36   ` Jakub Jelinek
2017-03-09 17:16 ` [PATCH 1/7] Add missing punctuation to message (PR driver/79875) David Malcolm
2017-03-10  4:15   ` Martin Sebor
2017-03-10 19:46     ` David Malcolm
2017-03-11 10:29     ` Roland Illig
2017-03-14  9:58       ` Bernhard Reutner-Fischer
2017-03-10  6:18   ` Jakub Jelinek
2017-03-09 17:16 ` [PATCH 4/7] c-indentation.c: workaround xgettext limitation (PR c/79921) David Malcolm
2017-03-10  6:26   ` Jakub Jelinek
2017-03-09 17:16 ` [PATCH 3/7] Remove trailing period from various diagnostic messages (PR translation/79923) David Malcolm
2017-03-10  6:24   ` Jakub Jelinek
2017-03-10  9:24     ` Kyrill Tkachov
2017-03-10  9:31       ` Jakub Jelinek
2017-03-10  9:32         ` Kyrill Tkachov
2017-03-10 23:36       ` David Malcolm
2017-03-13  9:01         ` Kyrill Tkachov [this message]
2017-03-09 17:16 ` [PATCH 6/7] i386.c: make "sorry" message more amenable to translation (PR target/79926) David Malcolm
2017-03-10  4:23   ` Martin Sebor
2017-03-10  6:33   ` Jakub Jelinek
2017-03-11  1:52     ` [PATCH 6/7 v2] " David Malcolm
2019-03-08 17:30       ` Jakub Jelinek
2017-03-09 17:16 ` [PATCH 2/7] aarch64.c: tweaks to quoting in error messages (PR target/79925) David Malcolm
2017-03-11  0:39   ` Joseph Myers
2017-03-09 17:16 ` [PATCH 5/7] fortran: remove trailing exclamation mark from various diagnostics (PR fortran/79852) David Malcolm
2017-03-09 21:36 ` [PATCH 0/7] Various i18n fixes (and questions) Gerald Pfeifer
2017-03-11  0:38 ` Joseph Myers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58C65FDB.6000501@foss.arm.com \
    --to=kyrylo.tkachov@foss.arm.com \
    --cc=dmalcolm@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=joseph@codesourcery.com \
    --cc=ramana.radhakrishnan@arm.com \
    --cc=richard.earnshaw@arm.com \
    --cc=roland.illig@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).