public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Malcolm <dmalcolm@redhat.com>
To: Antoni Boucher <bouanto@zoho.com>,
	jit@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] libgccjit: Add support for setting the link section of global variables [PR100688]
Date: Sat, 20 Nov 2021 13:27:32 -0500	[thread overview]
Message-ID: <d785a28c8b096f40bba35d5d0949028106f51cb3.camel@redhat.com> (raw)
In-Reply-To: <ea65c093c81f559232593291a7cda4c2fa83dd79.camel@zoho.com>

On Sat, 2021-11-20 at 11:53 -0500, Antoni Boucher wrote:
> Hi.
> Here's the updated patch.
> See comments below.
> Thanks for the review!

> 
> Le samedi 20 novembre 2021 à 11:20 -0500, David Malcolm a écrit :
> > On Sat, 2021-11-20 at 00:58 -0500, Antoni Boucher wrote:

[...snip...]


> > 
> > 
> > > > > diff --git a/gcc/testsuite/jit.dg/all-non-failing-tests.h
> > > > b/gcc/testsuite/jit.dg/all-non-failing-tests.h
> > > > > index 4202eb7798b..7e3b59dee0d 100644
> > > > > --- a/gcc/testsuite/jit.dg/all-non-failing-tests.h
> > > > > +++ b/gcc/testsuite/jit.dg/all-non-failing-tests.h
> > > > > @@ -181,6 +181,13 @@
> > > > >  #undef create_code
> > > > >  #undef verify_code
> > > > >  
> > > > > +/* test-link-section.c */
> > > > > +#define create_code create_code_link_section
> > > > > +#define verify_code verify_code_link_section
> > > > > +#include "test-link-section.c"
> > > > > +#undef create_code
> > > > > +#undef verify_code
> > 
> > The updated version of the testcase doesn't have a verify_code, so it
> > can't be in the "testcases" array.  
> > Please replace this with something like:
> > 
> > 
> > /* test-link-section.c: This can't be in the testcases array as it
> >    doesn't have a verify_code implementation.  */
> >  
> > 
> > (I'm trying to have all-nonfailing-tests.h refer to each non-failing
> > test, either adding it to the testcases array, or documenting why it
> > isn't in the array; listing them in alphabetical order)
> 
> Hum, that code seems to refer to the previous patch.
> I removed that part and changed the test to test-link-section-
> assembler.c which checks that the assembly contains the link section.
> As far as I know, it does not need to be listed here to be ran.

Right, it's just a comment.  It's not to be run here, I'm just trying
to document those tests that aren't being as part of the
threads/combination tests, since it's so easy to accidentally omit them
when adding a new test - ideally all-non-failing-tests.h will mention
all of the tests that don't have "error" in their titles, either adding
them to the "testcases" array, or documenting why they're not in the
array, with a comment like the one I suggested above (feel free to
directly use that).

[...snip...]

> > 
> > Overall the patch looks good, my comments are all just nit-picks at
> > this point, except that obviously you need to finish updating the
> > symbol name to "section_name" in gcc_jit_lvalue_set_link_section so
> > that it compiles.  Please check it compiles and that the testsuite
> > passes before pushing - though I think this is waiting on another
> > patch, right?  This is OK for trunk, once those fixes and
> > prerequisites
> > are taken care of.
> > 
> > Thanks again
> > Dave

Looks good for trunk, once the earlier patch is in.  As before, please
do a test build and run the testsuite before pushing.

Thanks for the updated patch.
Dave


      reply	other threads:[~2021-11-20 18:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20  0:32 Antoni Boucher
2021-05-20 19:29 ` David Malcolm
2021-05-20 19:59   ` David Malcolm
2021-11-20  5:58   ` Antoni Boucher
2021-11-20 16:20     ` David Malcolm
2021-11-20 16:53       ` Antoni Boucher
2021-11-20 18:27         ` David Malcolm [this message]

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=d785a28c8b096f40bba35d5d0949028106f51cb3.camel@redhat.com \
    --to=dmalcolm@redhat.com \
    --cc=bouanto@zoho.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jit@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).