public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@redhat.com>
To: Martin Sebor <msebor@gmail.com>,
	David Malcolm <dmalcolm@redhat.com>,
	gcc-patches <gcc-patches@gcc.gnu.org>
Cc: Jeff Law <law@redhat.com>
Subject: Re: [PING][PATCH 2/4] remove %G and %K from calls in front end and middle end (PR 98512)
Date: Fri, 2 Jul 2021 08:56:33 +0200	[thread overview]
Message-ID: <34c98694-2e2f-a4a4-061e-70c49f34444b@redhat.com> (raw)
In-Reply-To: <8632a55d-dacc-7173-4576-7c9ae96e63d8@gmail.com>



On 7/1/21 10:14 PM, Martin Sebor wrote:
> On 6/30/21 5:35 PM, David Malcolm wrote:
>> On Wed, 2021-06-30 at 13:45 -0600, Martin Sebor wrote:
>>> On 6/30/21 9:39 AM, Martin Sebor wrote:

>>> @@ -90,8 +90,8 @@ NOIPA void warn_g2 (struct A *p)
>>>     g2 (p);
>>>   }
>>> -// { dg-message "inlined from 'g2'" "" { target *-*-* } 0 }
>>> -// { dg-message "inlined from 'warn_g2'" "" { target *-*-* } 0 }
>>> +// { dg-message "inlined from 'g2'" "note on line 93" { target *-*-* 
>>> } 0 }
>>> +// { dg-message "inlined from 'warn_g2'" "note on line 94" { target 
>>> *-*-* } 0 }
>>
>> You've added descriptions to disambiguate all of the various directives
>> on line 0, which is good, but I don't like the use of line numbers in
>> the descriptions, since it will get very confusing if the numbering
>> changes.
>>
>> Would it work to use the message text as the description e.g.
>>
>>    // { dg-message "inlined from 'warn_g2'" "inlined from 'warn_g2'" { 
>> target *-*-* } 0 }
>>
>> or somesuch?
> 
> It would certainly work, they're just informational labels printed
> by DejaGnu when the assertions fail.  I added them to help me see
> what they went with while working with the test.  I'm not concerned
> about the line numbers changing.  If they do and someone notices,
> they can update them, the same way they might want to if they
> rename the functions they're inlined into.

I agree with David.  Having too specific tests adds an extra maintenance 
burden.  You may not mind updating all the line numbers when anything 
changes, but others may certainly mind.

Aldy


  reply	other threads:[~2021-07-02  6:56 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-19 18:58 [PATCH] improve warning suppression for inlined functions (PR 98465, 98512) Martin Sebor
2021-01-21 17:34 ` Florian Weimer
2021-01-21 18:24   ` Martin Sebor
2021-01-21 19:01     ` Florian Weimer
2021-01-21 20:24       ` Martin Sebor
2021-01-21 23:46 ` Martin Sebor
2021-01-30  2:56   ` PING " Martin Sebor
2021-02-06 17:12     ` PING 2 " Martin Sebor
2021-02-15  0:40       ` PING 3 " Martin Sebor
2021-05-19 13:41   ` David Malcolm
2021-06-10 23:24     ` [PATCH 0/4] improve warning suppression for inlined functions (PR 98512) Martin Sebor
2021-06-10 23:26       ` [PATCH 1/4] introduce diagnostic infrastructure changes " Martin Sebor
2021-06-11 17:04         ` David Malcolm
2021-06-15 23:00           ` Martin Sebor
2021-06-28 18:10             ` [PING][PATCH " Martin Sebor
2021-06-30 22:55             ` [PATCH " David Malcolm
2021-07-01 19:43               ` Martin Sebor
2021-06-10 23:27       ` [PATCH 2/4] remove %G and %K from calls in front end and middle end " Martin Sebor
2021-06-30 15:39         ` [PING][PATCH " Martin Sebor
2021-06-30 19:45           ` Martin Sebor
2021-06-30 23:35             ` David Malcolm
2021-07-01 20:14               ` Martin Sebor
2021-07-02  6:56                 ` Aldy Hernandez [this message]
2021-07-02 21:53                   ` Jeff Law
2021-07-02 20:52                 ` David Malcolm
2021-07-02 22:15                   ` Martin Sebor
2021-06-10 23:28       ` [PATCH 3/4] remove %K from error() calls in the aarch64/arm back ends " Martin Sebor
2021-06-11  7:53         ` Christophe Lyon
2021-06-11 13:10           ` Christophe Lyon
2021-06-11 14:47             ` Martin Sebor
2021-06-11  9:58         ` Richard Sandiford
2021-06-11 14:46           ` Martin Sebor
2021-06-30 19:56             ` Martin Sebor
2021-07-01  8:01               ` Christophe LYON
2021-07-01 14:45                 ` Martin Sebor
2021-06-10 23:30       ` [PATCH 4/4] remove %G and %K support from pretty printer and -Wformat " Martin Sebor
2021-06-30 16:17         ` [PING][PATCH " Martin Sebor
2021-06-30 23:38         ` [PATCH " David Malcolm
2021-07-06 20:15           ` Martin Sebor
2021-07-07  9:38             ` Andreas Schwab
2021-07-07  9:47               ` Christophe Lyon
2021-07-07 10:12                 ` Andreas Schwab
2021-02-19  4:28 ` [PATCH] improve warning suppression for inlined functions (PR 98465, 98512) Jeff Law
2021-02-19 10:57   ` Florian Weimer

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=34c98694-2e2f-a4a4-061e-70c49f34444b@redhat.com \
    --to=aldyh@redhat.com \
    --cc=dmalcolm@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=law@redhat.com \
    --cc=msebor@gmail.com \
    /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).