public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Sandiford <richard.sandiford@arm.com>
To: Martin Sebor via Gcc-patches <gcc-patches@gcc.gnu.org>
Cc: "Martin Liška" <mliska@suse.cz>,
	"Martin Sebor" <msebor@gmail.com>,
	"Segher Boessenkool" <segher@kernel.crashing.org>
Subject: Re: [PATCH] Fix -Wformat-diag for rs6000 target.
Date: Thu, 13 Jan 2022 12:55:10 +0000	[thread overview]
Message-ID: <mpt1r1bu769.fsf@arm.com> (raw)
In-Reply-To: <89e7d832-9b1e-402b-e00d-2b184c7aa19f@gmail.com> (Martin Sebor via Gcc-patches's message of "Wed, 12 Jan 2022 08:49:41 -0700")

Martin Sebor via Gcc-patches <gcc-patches@gcc.gnu.org> writes:
> On 1/12/22 02:02, Martin Liška wrote:
>> Hello.
>> 
>> We've got -Wformat-diag for some time and I think we should start using it
>> in -Werror for GCC bootstrap. The following patch removes last pieces of 
>> the warning
>> for rs6000 target.
>> 
>> Ready to be installed?
>> Thanks,
>> Martin
>> 
>> 
>> gcc/ChangeLog:
>> 
>>      * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Wrap
>>      keywords and use %qs instead of %<%s%>.
>>      (rs6000_expand_builtin): Likewise.
>> 
>> gcc/testsuite/ChangeLog:
>> 
>>      * gcc.target/powerpc/bfp/scalar-extract-exp-5.c: Adjust scans in
>>      testcases.
>>      * gcc.target/powerpc/bfp/scalar-extract-sig-5.c: Likewise.
>>      * gcc.target/powerpc/bfp/scalar-insert-exp-11.c: Likewise.
>> ---
>>   gcc/config/rs6000/rs6000-call.c                           | 8 ++++----
>>   .../gcc.target/powerpc/bfp/scalar-extract-exp-5.c         | 2 +-
>>   .../gcc.target/powerpc/bfp/scalar-extract-sig-5.c         | 2 +-
>>   .../gcc.target/powerpc/bfp/scalar-insert-exp-11.c         | 2 +-
>>   4 files changed, 7 insertions(+), 7 deletions(-)
>> 
>> diff --git a/gcc/config/rs6000/rs6000-call.c 
>> b/gcc/config/rs6000/rs6000-call.c
>> index c78b8b08c40..becdad73812 100644
>> --- a/gcc/config/rs6000/rs6000-call.c
>> +++ b/gcc/config/rs6000/rs6000-call.c
>> @@ -3307,7 +3307,7 @@ rs6000_invalid_builtin (enum rs6000_gen_builtins 
>> fncode)
>>            "-mvsx");
>>         break;
>>       case ENB_IEEE128_HW:
>> -      error ("%qs requires ISA 3.0 IEEE 128-bit floating point", name);
>> +      error ("%qs requires ISA 3.0 IEEE 128-bit floating-point", name);
>
> The instances of the warning where floating point is at the end
> of a message aren't correct.  The warning should be relaxed to
> allow unhyphenated floating point as a noun (as discussed briefly
> last March:
> https://gcc.gnu.org/pipermail/gcc-patches/2021-March/566881.html)

Wouldn't it be fair to say that “floating point” in the message above is
really an adjective modifying an implicit noun?  The floating (decimal)
point doesn't itself have 128 bits.

Like you say in the linked message, we could add an explicit noun too.
But the change seems OK as-is to me.

Thanks,
Richard

  reply	other threads:[~2022-01-13 12:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12  9:02 Martin Liška
2022-01-12 15:49 ` Martin Sebor
2022-01-13 12:55   ` Richard Sandiford [this message]
2022-01-13 15:55     ` Martin Sebor
2022-01-13 16:02     ` Martin Liška
2022-01-12 16:45 ` Martin Sebor
2022-01-13 23:35 ` Segher Boessenkool

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=mpt1r1bu769.fsf@arm.com \
    --to=richard.sandiford@arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mliska@suse.cz \
    --cc=msebor@gmail.com \
    --cc=segher@kernel.crashing.org \
    /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).