Using specs in a frontend

2025-07-06 Thread Antoni Boucher via Gcc
Hi. I've been told on IRC to use specs to achieve some of the things I want to do in libgccjit (for instance, instead of calling host_detect_local_cpu which doesn't exist when cross-compiling). I've been having some issues to do so. Can I only call do_spec in specific places? It works OK in l

Re: Manually set sret parameter

2025-06-30 Thread Antoni Boucher via Gcc
ski a écrit : > > > On Sun, Jun 29, 2025, 7:43 AM Andrew Pinski mailto:pins...@gmail.com> > <mailto:pins...@gmail.com <mailto:pins...@gmail.com>>> wrote: > > On Sun, Jun 29, 2025, 7:36 AM Antoni Boucher via Gcc > ma

Re: Manually set sret parameter

2025-06-30 Thread Antoni Boucher via Gcc
:pins...@gmail.com> > <mailto:pins...@gmail.com <mailto:pins...@gmail.com>>> wrote: > >     On Sun, Jun 29, 2025, 7:36 AM Antoni Boucher via Gcc >     mailto:gcc@gcc.gnu.org> <mailto:gcc@gcc.gnu.org <mailto:gcc@gcc.gnu.org>>> wrote: >

Re: Manually set sret parameter

2025-06-29 Thread Antoni Boucher via Gcc
Le 2025-06-29 à 10 h 46, Andrew Pinski a écrit : On Sun, Jun 29, 2025, 7:43 AM Andrew Pinski <mailto:pins...@gmail.com>> wrote: On Sun, Jun 29, 2025, 7:36 AM Antoni Boucher via Gcc mailto:gcc@gcc.gnu.org>> wrote: Hi. Is there a way in GENERIC to

Manually set sret parameter

2025-06-29 Thread Antoni Boucher via Gcc
Hi. Is there a way in GENERIC to specify that a parameter will be passed in "sret", or is this solely controlled by the hook struct_value_rtx? Thanks.

Remove duplication for the handling of attributes between different frontends

2025-04-05 Thread Antoni Boucher via Gcc
Hi. We're trying to remove the duplication of the attributes code between the C and libgccjit frontend. The attached patch shows a draft of this attempt that only supports a few attributes. Would that kind of approach be acceptable (I'm not sure since this includes a c-family file in libgccjit)

Handling of nonnull function attribute

2023-09-21 Thread Antoni Boucher via Gcc
Hi. I'm working on adding the support for the nonnull attribute in libgccjit. I found out a way to make it working, but I need more help to find a proper solution. The problem is that the nonnull attribute should be added to the fn_type while we added it to the fn_decl. If we add it to the fn_type

Question regarding copyright assignment

2022-10-06 Thread Antoni Boucher via Gcc
Hi. I contribute to gcc outside of work, but I'm about to sign a new work contract which contains a work ownership clause saying that I give the ownership to the company of any work not listed in some appendix. What exactly should I list to make sure my contributions to GCC are not affected by thi

Copyright assignment form

2020-10-03 Thread Antoni Boucher via Gcc
Hello. I'd like a copyright assignment form for all my future contributions to gcc. Thanks.