Re: [PATCH] libgccjit: Add gcc_jit_global_set_readonly

2024-02-17 Thread Antoni Boucher
David: Ping. On Wed, 2024-01-24 at 10:36 -0500, Antoni Boucher wrote: > Yes, it is for a use case inside of rustc_codegen_gcc. > The compiler is structured in a way where we don't know if a global > variable might be constant when it is created. > > On Wed, 2024-01-24 at 10:09 -0500, David Malcol

Re: [PATCH] libgccjit: Add gcc_jit_global_set_readonly

2024-01-24 Thread Antoni Boucher
Yes, it is for a use case inside of rustc_codegen_gcc. The compiler is structured in a way where we don't know if a global variable might be constant when it is created. On Wed, 2024-01-24 at 10:09 -0500, David Malcolm wrote: > On Fri, 2024-01-19 at 16:57 -0500, Antoni Boucher wrote: > > Hi. > > T

Re: [PATCH] libgccjit: Add gcc_jit_global_set_readonly

2024-01-24 Thread David Malcolm
On Fri, 2024-01-19 at 16:57 -0500, Antoni Boucher wrote: > Hi. > This patch adds a new API gcc_jit_global_set_readonly: it's > equivalent > to having a const global variable, but it is useful in the case of > complex compilers where it is not convenient to use const. > Thanks for the review. Hi An

[PATCH] libgccjit: Add gcc_jit_global_set_readonly

2024-01-19 Thread Antoni Boucher
2001 From: Antoni Boucher Date: Tue, 24 May 2022 17:45:01 -0400 Subject: [PATCH] libgccjit: Add gcc_jit_global_set_readonly gcc/jit/ChangeLog: * docs/topics/compatibility.rst (LIBGCCJIT_ABI_26): New ABI tag. * docs/topics/expressions.rst: Document gcc_jit_global_set_readonly. * jit-playba