Re: [gimplefe] Parsing __GIMPLE function body

2016-06-09 Thread Richard Biener
On Wed, Jun 8, 2016 at 10:57 PM, Prathamesh Kulkarni wrote: > On 6 June 2016 at 15:49, Richard Biener wrote: >> 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; >>> }

Re: [gimplefe] Parsing __GIMPLE function body

2016-06-08 Thread Prathamesh Kulkarni
On 6 June 2016 at 15:49, Richard Biener wrote: > 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 >> cf

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

Re: [gimplefe] Parsing __GIMPLE function body

2016-06-01 Thread David Malcolm
On Wed, 2016-06-01 at 12:49 +0530, Prathamesh Kulkarni wrote: > On 30 May 2016 at 20:45, Prasad Ghangal > wrote: > > Hi, > > > > As David suggested in his rtlfe patch, > > this patch recognizes __GIMPLE keyword and switches to > > c_parser_parse_gimple_body by providing -fgimple option. > > [sni

Re: [gimplefe] Parsing __GIMPLE function body

2016-06-01 Thread Prasad Ghangal
On 1 June 2016 at 15:19, Richard Biener wrote: > On Wed, Jun 1, 2016 at 9:19 AM, Prathamesh Kulkarni > wrote: >> On 30 May 2016 at 20:45, Prasad Ghangal wrote: >>> Hi, >>> >>> As David suggested in his rtlfe patch, >>> this patch recognizes __GIMPLE keyword and switches to >>> c_parser_parse_gim

Re: [gimplefe] Parsing __GIMPLE function body

2016-06-01 Thread Richard Biener
On Wed, Jun 1, 2016 at 9:19 AM, Prathamesh Kulkarni wrote: > On 30 May 2016 at 20:45, Prasad Ghangal wrote: >> Hi, >> >> As David suggested in his rtlfe patch, >> this patch recognizes __GIMPLE keyword and switches to >> c_parser_parse_gimple_body by providing -fgimple option. >> >> >> diff --git

Re: [gimplefe] Parsing __GIMPLE function body

2016-06-01 Thread Prathamesh Kulkarni
On 30 May 2016 at 20:45, Prasad Ghangal wrote: > Hi, > > As David suggested in his rtlfe patch, > this patch recognizes __GIMPLE keyword and switches to > c_parser_parse_gimple_body by providing -fgimple option. > > > diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c > index 4568cf6..

Re: [gimplefe] Parsing __GIMPLE function body

2016-05-31 Thread Richard Biener
On Mon, May 30, 2016 at 5:15 PM, Prasad Ghangal wrote: > Hi, > > As David suggested in his rtlfe patch, > this patch recognizes __GIMPLE keyword and switches to > c_parser_parse_gimple_body by providing -fgimple option. > > > diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c > index 4

[gimplefe] Parsing __GIMPLE function body

2016-05-30 Thread Prasad Ghangal
Hi, As David suggested in his rtlfe patch, this patch recognizes __GIMPLE keyword and switches to c_parser_parse_gimple_body by providing -fgimple option. diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 4568cf6..41a8f05 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family