public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jason Merrill <jason@redhat.com>
To: Anthony Sharp <anthonysharp15@gmail.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] c++: private inheritance access diagnostics fix [PR17314]
Date: Thu, 21 Jan 2021 17:56:19 -0500	[thread overview]
Message-ID: <87dacae0-c835-1927-b93b-dce704275719@redhat.com> (raw)
In-Reply-To: <CA+Lh_Amqv8gnE7kbXYvGwHQoZcpCBq6zBY7H+Q6AnjxB1AU7Zw@mail.gmail.com>

On 1/21/21 2:28 PM, Anthony Sharp wrote:
> Hi Jason,
> 
> I've finally completed my copyright assignment form. I've attached it
> to this email for reference.
> 
>> You don't need write access to the main repository to use these commands
>> on your local copy.  One nice thing about git compared to svn is that
>> you don't need to touch the server for anything but push and pull.
>>
>> Incidentally, how are you producing your patch?  Maybe try git
>> format-patch instead.
> 
> The method I am using at the moment is the one Ranjit Mathew talks
> about here: http://rmathew.com/articles/gcj/crpatch.html.

Interesting.  Yeah, that page is obsolete since the move to git.

> It's my fault kind of - the official GCC webpage
> (https://gcc.gnu.org/gitwrite.html) explaining how to do it is called
> 'Read-write Git access' so I assumed it was only relevant for people
> who have access to the repo, but I see that is not the case.

Those pages could definitely be more clearly organized.

> I've tried the git way of doing it and I'm attaching a new patch file
> that (hopefully) is better this time. Basically what I did was what
> you suggested:
> 
> git pull
> contrib/gcc-git-customization.sh
> (make changes)
> git add *
> git gcc-commit-mklog
> git gcc-commit-mklog --amend

Why two gcc-comit-mklog?  That would generate the log entries twice.

You should also git gcc-verify at this point; for me, it complains about 
some of your header lines in the log.  Your author line needs to start 
at the first column, and use "01" for January instead of just "1".  The 
other explanatory lines can be omitted, in favor of:

The commit message before the log entries should include your rationale 
for the patch (e.g. the first two paragraphs of your initial email).

> git format-patch -1 master
> 
> I also re-built the source just to make sure I hadn't messed anything
> up. I re-ran the C++ regression tests using make check-c and make
> check-c++. Whilst I did not do a before/after comparison of the
> results, I checked the FAILs in gcc.sum and g++.sum and they all
> looked like they had nothing to do with my code. All the code is the
> same as before, so I'm thinking it should be fine (I just wanted to be
> safe). Also checked against check_GNU_style.sh.
> 
> Assuming that's all fine, as for the code itself, there might well be
> some tweaks that could make it better, and so if that is the case then
> please let me know.

I'll look at the code soon.

Thanks,
Jason


  reply	other threads:[~2021-01-21 22:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-05 14:24 Anthony Sharp
2021-01-07 21:01 ` Jason Merrill
2021-01-09  0:38   ` Anthony Sharp
2021-01-11 20:03     ` Jason Merrill
2021-01-21 19:28       ` Anthony Sharp
2021-01-21 22:56         ` Jason Merrill [this message]
2021-01-22  3:44         ` Jason Merrill
2021-01-22 20:07           ` Anthony Sharp
2021-01-22 21:18             ` Jason Merrill
2021-01-22 22:36               ` Anthony Sharp

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=87dacae0-c835-1927-b93b-dce704275719@redhat.com \
    --to=jason@redhat.com \
    --cc=anthonysharp15@gmail.com \
    --cc=gcc-patches@gcc.gnu.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).