Re: JIT patch: add gcc_jit_magic_int

2016-06-10 Thread Basile Starynkevitch
On 06/07/2016 09:19 PM, Andrew Pinski wrote: On Mon, May 23, 2016 at 5:26 AM, Basile Starynkevitch wrote: Hello All, As I explained in https://gcc.gnu.org/ml/jit/2016-q2/msg00042.html it is difficult (or tricky without using dirty tricks involving the GCC plugin headers) to use GCCJIT to emit

Re: JIT patch: add gcc_jit_magic_int

2016-06-07 Thread Andrew Pinski
On Tue, Jun 7, 2016 at 12:22 PM, Andrew Pinski wrote: > On Tue, Jun 7, 2016 at 12:19 PM, Andrew Pinski wrote: >> On Mon, May 23, 2016 at 5:26 AM, Basile Starynkevitch >> wrote: >>> Hello All, >>> >>> As I explained in https://gcc.gnu.org/ml/jit/2016-q2/msg00042.html it is >>> difficult (or trick

Re: JIT patch: add gcc_jit_magic_int

2016-06-07 Thread Andrew Pinski
On Tue, Jun 7, 2016 at 12:19 PM, Andrew Pinski wrote: > On Mon, May 23, 2016 at 5:26 AM, Basile Starynkevitch > wrote: >> Hello All, >> >> As I explained in https://gcc.gnu.org/ml/jit/2016-q2/msg00042.html it is >> difficult (or tricky without using dirty tricks involving the GCC plugin >> header

Re: JIT patch: add gcc_jit_magic_int

2016-06-07 Thread Andrew Pinski
On Mon, May 23, 2016 at 5:26 AM, Basile Starynkevitch wrote: > Hello All, > > As I explained in https://gcc.gnu.org/ml/jit/2016-q2/msg00042.html it is > difficult (or tricky without using dirty tricks involving the GCC plugin > headers) to use GCCJIT to emit code equivalent to the following C file

Re: JIT patch: add gcc_jit_magic_int

2016-06-07 Thread David Malcolm
On Mon, 2016-05-23 at 14:26 +0200, Basile Starynkevitch wrote: > Hello All, > > As I explained in https://gcc.gnu.org/ml/jit/2016-q2/msg00042.html it > is > difficult (or tricky without using dirty tricks involving the GCC > plugin > headers) to use GCCJIT to emit code equivalent to the followin

JIT patch: add gcc_jit_magic_int

2016-05-23 Thread Basile Starynkevitch
Hello All, As I explained in https://gcc.gnu.org/ml/jit/2016-q2/msg00042.html it is difficult (or tricky without using dirty tricks involving the GCC plugin headers) to use GCCJIT to emit code equivalent to the following C file: extern int a; int get_atomic_a (void) { return __atom