SV: SV: [commited] jit: Support for global rvalue initialization and constructors

2021-12-30 Thread Petter Tomner via Gcc-patches
Tomner; David Malcolm; j...@gcc.gnu.org; gcc-patches@gcc.gnu.org Ämne: Re: SV: [commited] jit: Support for global rvalue initialization and constructors   Oh, sorry, I meant when you have an array not in a local variable, and you try to assign to an index of this array. Something like

Re: SV: [commited] jit: Support for global rvalue initialization and constructors

2021-12-29 Thread Antoni Boucher via Gcc-patches
Oh, sorry, I meant when you have an array not in a local variable, and you try to assign to an index of this array. Something like: gcc_jit_rvalue *ctor = gcc_jit_context_new_array_constructor (ctxt,0,int50arr_type,6,values); gcc_jit_block_add_assignment (block, 0, gcc_jit_context_new_arra

SV: [commited] jit: Support for global rvalue initialization and constructors

2021-12-29 Thread Petter Tomner via Gcc-patches
Could you be more specific? I tried the equivalent of: /*int [50] foobar = {1,2,3,4}; int [50] foo() { int arr[50]; arr = (int [50]){-1,-2,-3,-4,-5,-6}; arr = foobar; arr = (int [50]){1,2,3,4,5,6};

SV: [commited] jit: Support for global rvalue initialization and constructors

2021-12-15 Thread Petter Tomner via Gcc-patches
Oh ye I accidentally dropped that in the merge thank you. I believe there is an implicit "global:" in the top of each version scope, so it shouldn't matter other than looking a bit deviant. Regards, Petter Från: Antoni Boucher Skickat: den 15 december 2021 15:19 Till: Petter Tomner; David Malc