Re: Implementing atomic load as compare-and-swap for read-only memory

2016-06-06 Thread Florian Weimer
On 06/03/2016 02:26 PM, Torvald Riegel wrote: On Fri, 2016-06-03 at 12:03 +0200, Jakub Jelinek wrote: I guess it is a tough decision. If you don't have HW instruction to read say double word aligned integer atomically, if you don't implement atomic load on it through compare and swap (which ind

Re: [gimplefe] Parsing __GIMPLE function body

2016-06-06 Thread Richard Biener
On Mon, Jun 6, 2016 at 11:27 AM, Prasad Ghangal wrote: > Hi, > > This patch parses simple assignment statement > > int a; > void __GIMPLE foo() > { > a = 1; > } > > but it does not produce gimple dump. In debugging I found that > cfun->gimple_body is not NULL and it contains GIMPLE_ASSIGN statem

Re: [gimplefe] Parsing __GIMPLE function body

2016-06-06 Thread Prasad Ghangal
Hi, This patch parses simple assignment statement int a; void __GIMPLE foo() { a = 1; } but it does not produce gimple dump. In debugging I found that cfun->gimple_body is not NULL and it contains GIMPLE_ASSIGN statement. Am I missing something ? Thanks, Prasad Ghangal On 31 May 2016 at 15