public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Martin Sebor <msebor@gmail.com>
To: Marek Polacek <polacek@redhat.com>
Cc: Jakub Jelinek <jakub@redhat.com>,
	"Joseph S. Myers" <joseph@codesourcery.com>,
	Jason Merrill <jason@redhat.com>, Nathan Sidwell <nathan@acm.org>,
	Gcc Patch List <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] accept all C integer types in function parameters referenced by alloc_align (PR 88363)
Date: Tue, 11 Dec 2018 19:43:00 -0000	[thread overview]
Message-ID: <ae918935-ba36-f39a-d910-ca472432393e@gmail.com> (raw)
In-Reply-To: <20181211181523.GT21364@redhat.com>

On 12/11/18 11:15 AM, Marek Polacek wrote:
> On Tue, Dec 11, 2018 at 09:59:27AM -0700, Martin Sebor wrote:
>> [*] The change in the patch is obvious enough to me.  All it
>> does is accept more of the things that are accepted by GCC 8
>> (enums, bools, wchar_t, etc.) and that inadvertently started
>> to be rejected as a result of my prior change.   That the rules
>> can be made more restrictive is something different.
>   
> Obvious changes should be obvious to anyone, not just the committer, IMHO.  I
> don't think we should make the rules more restrictive; 

I was referring to the rules of what expression the compiler accepts
as positional parameters.

> what we have in place
> seems to have worked fine and I would have thought it's clear that changing
> what the compiler accepts will never be an obvious change, unlike, say, fixing
> a test that fails with -m32 because it uses 'unsigned long' instead of size_t.

If that's the intent it should be stated in the policy then.  Seems
simple enough:

   Obvious fixes <ins>that have no impact on constructs accepted
   or rejected by the compiler</ins> can be committed without
   prior approval.

I have no problem with this clarification.  I just wouldn't have
thought it to apply to restoring previous behavior that I myself
had inadvertently removed (i.e., fixing my own regression).

>> I recently brought up the question of the write w/o approval
>> policy on the gcc list:
>>
>>    https://gcc.gnu.org/ml/gcc/2018-11/msg00165.html
>>
>> looking for clarification.  Except for Jeff's comment (which
>> I'm afraid didn't really clarify things), didn't get any.
>>
>> You (the maintainers) have put it in place.  If you don't intend
>> for the rest of us to make use of it, or if it's not meant to be
>> interpreted to give us the freedom to decide what is or isn't
>> obvious, then change it. But it's disingenuous to claim that "We
>> don't want to get overly restrictive about checkin policies" and
>> then chastise people each time they say they might check something
>> in on their own.
> 
> ...or fixing typos in comments and formatting fixes should be obvious, adding
> new tests for fixed bugs likely as well, but outlining semantics in a comment
> doesn't strike me as obvious at all.  "When in doubt, ask for a review."

I was not in doubt, but I posted the patch for review just
the same, didn't I?

If by "outlining semantics in a comment" you are referring to
the patch mentioned in the other thread then if such changes are
also not meant to fall under obvious then again, update the policy:

   Obvious fixes <ins>that have no impact on constructs accepted
   or rejected by the compiler and that do not outline the semantics
   of GCC internals in comments</ins> can be committed without prior
   approval.

In both of these cases I posted the patch and invited feedback
to make sure that was seemed clearly correct to me wouldn't be
viewed differently by others.  That still seems perfectly
appropriate to me.  But if even that isn't acceptable then update
the policy to make it clear that posting a patch and saying that
you'll commit it if no one objects is also against the rules.

Martin

  reply	other threads:[~2018-12-11 19:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-10 23:30 Martin Sebor
2018-12-11  7:17 ` Jakub Jelinek
2018-12-11 15:14   ` Jason Merrill
2018-12-11 15:43   ` Marek Polacek
2018-12-11 16:59   ` Martin Sebor
2018-12-11 18:15     ` Marek Polacek
2018-12-11 19:43       ` Martin Sebor [this message]
2018-12-11 18:16     ` Joseph Myers
2018-12-11 19:46       ` Martin Sebor
2018-12-11 20:09         ` Jason Merrill
2018-12-11 20:37   ` Martin Sebor
2018-12-11 20:48     ` Jakub Jelinek
2018-12-11 22:46       ` Martin Sebor
2018-12-11 22:52         ` Marek Polacek
2018-12-11 23:08           ` Martin Sebor
2018-12-11 23:19             ` Jason Merrill
2018-12-18 21:42               ` Martin Sebor
2019-01-03 22:12                 ` PING #2 " Martin Sebor
2019-01-04 20:56                   ` Joseph Myers
2019-01-06 10:27     ` Jakub Jelinek

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=ae918935-ba36-f39a-d910-ca472432393e@gmail.com \
    --to=msebor@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=jason@redhat.com \
    --cc=joseph@codesourcery.com \
    --cc=nathan@acm.org \
    --cc=polacek@redhat.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).