public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Add missing declaration of get_restrict in C++ interface
@ 2023-11-09 20:03 Guillaume Gomez
  2023-11-09 20:49 ` David Malcolm
  0 siblings, 1 reply; 4+ messages in thread
From: Guillaume Gomez @ 2023-11-09 20:03 UTC (permalink / raw)
  To: gcc-patches, jit, David Malcolm, Antoni

[-- Attachment #1: Type: text/plain, Size: 137 bytes --]

Hi,

This patch adds the `get_restrict` method declaration for
the C++ interface as it was forgotten.

Thanks in advance for the review.

[-- Attachment #2: 0001-Add-missing-declaration-of-get_restrict-in-C-interfa.patch --]
[-- Type: text/x-patch, Size: 764 bytes --]

From e819fd01cd3e79bfab28a77f4ce78f34156e7a83 Mon Sep 17 00:00:00 2001
From: Guillaume Gomez <guillaume1.gomez@gmail.com>
Date: Thu, 9 Nov 2023 17:53:08 +0100
Subject: [PATCH] Add missing declaration of get_restrict in C++ interface

gcc/jit/ChangeLog:

	* libgccjit++.h:
---
 gcc/jit/libgccjit++.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/jit/libgccjit++.h b/gcc/jit/libgccjit++.h
index 4a04db386e6..f9a0017cae5 100644
--- a/gcc/jit/libgccjit++.h
+++ b/gcc/jit/libgccjit++.h
@@ -360,6 +360,7 @@ namespace gccjit
     type get_volatile ();
     type get_aligned (size_t alignment_in_bytes);
     type get_vector (size_t num_units);
+    type get_restrict ();
 
     // Shortcuts for getting values of numeric types:
     rvalue zero ();
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add missing declaration of get_restrict in C++ interface
  2023-11-09 20:03 [PATCH] Add missing declaration of get_restrict in C++ interface Guillaume Gomez
@ 2023-11-09 20:49 ` David Malcolm
  2023-11-09 20:51   ` Guillaume Gomez
  0 siblings, 1 reply; 4+ messages in thread
From: David Malcolm @ 2023-11-09 20:49 UTC (permalink / raw)
  To: Guillaume Gomez, gcc-patches, jit, Antoni

On Thu, 2023-11-09 at 21:03 +0100, Guillaume Gomez wrote:
> Hi,
> 
> This patch adds the `get_restrict` method declaration for
> the C++ interface as it was forgotten.
> 
> Thanks in advance for the review.

Looking at my jit.sum results, it looks like the .cc files are indeed
FAILing on initial compilation, with errors such as:

In file included from gcc/testsuite/jit.dg/test-alignment.cc:4:
gcc/testsuite/../jit/libgccjit++.h:1414:1: error: no declaration matches 'gccjit::type gccjit::type::get_restrict()'
gcc/testsuite/../jit/libgccjit++.h:1414:1: note: no functions named 'gccjit::type gccjit::type::get_restrict()'
gcc/testsuite/../jit/libgccjit++.h:350:9: note: 'class gccjit::type' defined here

which presumably started with r14-3552-g29763b002459cb.

Hence the patch looks good to me - thanks!

Does this patch fix those test cases?

Dave


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add missing declaration of get_restrict in C++ interface
  2023-11-09 20:49 ` David Malcolm
@ 2023-11-09 20:51   ` Guillaume Gomez
  2023-11-09 21:02     ` David Malcolm
  0 siblings, 1 reply; 4+ messages in thread
From: Guillaume Gomez @ 2023-11-09 20:51 UTC (permalink / raw)
  To: David Malcolm; +Cc: gcc-patches, jit, Antoni

I confirm it does. I realized it when finalizing our patch for
attributes support.

Le jeu. 9 nov. 2023 à 21:49, David Malcolm <dmalcolm@redhat.com> a écrit :
>
> On Thu, 2023-11-09 at 21:03 +0100, Guillaume Gomez wrote:
> > Hi,
> >
> > This patch adds the `get_restrict` method declaration for
> > the C++ interface as it was forgotten.
> >
> > Thanks in advance for the review.
>
> Looking at my jit.sum results, it looks like the .cc files are indeed
> FAILing on initial compilation, with errors such as:
>
> In file included from gcc/testsuite/jit.dg/test-alignment.cc:4:
> gcc/testsuite/../jit/libgccjit++.h:1414:1: error: no declaration matches 'gccjit::type gccjit::type::get_restrict()'
> gcc/testsuite/../jit/libgccjit++.h:1414:1: note: no functions named 'gccjit::type gccjit::type::get_restrict()'
> gcc/testsuite/../jit/libgccjit++.h:350:9: note: 'class gccjit::type' defined here
>
> which presumably started with r14-3552-g29763b002459cb.
>
> Hence the patch looks good to me - thanks!
>
> Does this patch fix those test cases?
>
> Dave
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add missing declaration of get_restrict in C++ interface
  2023-11-09 20:51   ` Guillaume Gomez
@ 2023-11-09 21:02     ` David Malcolm
  0 siblings, 0 replies; 4+ messages in thread
From: David Malcolm @ 2023-11-09 21:02 UTC (permalink / raw)
  To: Guillaume Gomez; +Cc: gcc-patches, jit, Antoni

On Thu, 2023-11-09 at 21:51 +0100, Guillaume Gomez wrote:
> I confirm it does. I realized it when finalizing our patch for
> attributes support.

Excellent; thanks for the fix.

Dave



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-09 21:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-09 20:03 [PATCH] Add missing declaration of get_restrict in C++ interface Guillaume Gomez
2023-11-09 20:49 ` David Malcolm
2023-11-09 20:51   ` Guillaume Gomez
2023-11-09 21:02     ` David Malcolm

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).