public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/2] jit: Add support for complex types
@ 2021-09-14 23:30 Petter Tomner
  2021-09-14 23:37 ` [PATCH 1/2] " Petter Tomner
  2021-09-14 23:40 ` [PATCH 2/2] " Petter Tomner
  0 siblings, 2 replies; 5+ messages in thread
From: Petter Tomner @ 2021-09-14 23:30 UTC (permalink / raw)
  To: jit, gcc-patches


Hi!


The following two patches adds support for complex types in libgccjit.

The complex types already are in the types enum, however they are not usable.

In the patch, to use complex types, the user need to call a option function enabling 
support. In this way, there will be a linking error if someone tries to use complex types
and a too old libgccjit.so, instead of a cryptic out of range enum error message at runtime. 

Since the types already are in the enum, I saw no better way that wouldn't be confusing.  

Patch 1 is implementation and patch 2 is docs and testcases. 

check-jit runs fine on x64 Debian.

Regards,
Petter
   

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

end of thread, other threads:[~2021-09-27 12:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 23:30 [PATCH 0/2] jit: Add support for complex types Petter Tomner
2021-09-14 23:37 ` [PATCH 1/2] " Petter Tomner
2021-09-20  9:38   ` SV: " Petter Tomner
2021-09-27 12:37     ` Petter Tomner
2021-09-14 23:40 ` [PATCH 2/2] " Petter Tomner

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