Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-08-04 Thread Sandeep K Chaudhary
Hi Jeremy, Sorry I didn't get time to spend on the plugin. I reviewed the code, and found that it was a silly mistake. Basically, I had written the plugin for gcc first, and there was a version match check. Since the version is different for avr-gcc than gcc mainline, it was failing there. Essent

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-31 Thread Sandeep K Chaudhary
Hi Jeremy, Yeah, the hardest part is over. I will reply with the failure reason once I resolve it. :) Thanks again ! Sandeep. On Thu, Jul 31, 2014 at 2:16 PM, Jeremy Bennett wrote: > On 31/07/14 19:06, Sandeep K Chaudhary wrote: > > Thanks for the reply Jeremy ! > > > > Yes, you are right.

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-31 Thread Jeremy Bennett
On 31/07/14 19:06, Sandeep K Chaudhary wrote: > Thanks for the reply Jeremy ! > > Yes, you are right. plugin_init is indeed being called. And I am > returning '0' at the end. That means there is some issue in between. I > will try to figure it out. Hi Sandeep, You've got past the hardest hurdle

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-31 Thread Sandeep K Chaudhary
Hi Senthil, As pointed out by Jeremy, there is some issue with my plugin_init function. The plugin infrastructure seems to be in place. I will try to figure out the issue, and resolve it. Thanks a lot for all the help ! Sandeep. On Thu, Jul 31, 2014 at 1:19 AM, Sandeep K Chaudhary < babbusand

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-31 Thread Sandeep K Chaudhary
Thanks for the reply Jeremy ! Yes, you are right. plugin_init is indeed being called. And I am returning '0' at the end. That means there is some issue in between. I will try to figure it out. Thanks again, Sandeep. On Thu, Jul 31, 2014 at 5:29 AM, Jeremy Bennett wrote: > On 31/07/14 06:19, S

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-31 Thread Jeremy Bennett
On 31/07/14 06:19, Sandeep K Chaudhary wrote: > And also, when I try "fplugin" with avr-gcc or avr-g++, I get the > following - > > sandeep@ubuntu:~/ispec/tool/gcc_plugin/gimple$ avr-gcc > -fplugin=/home/sandeep/ispec/tool/gcc_plugin/gimple/plugin.so > -mmcu=atmega8 -c ledchase.c > cc1: error: fai

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-30 Thread Sandeep K Chaudhary
And also, when I try "fplugin" with avr-gcc or avr-g++, I get the following - sandeep@ubuntu:~/ispec/tool/gcc_plugin/gimple$ avr-gcc -fplugin=/home/sandeep/ispec/tool/gcc_plugin/gimple/plugin.so -mmcu=atmega8 -c ledchase.c cc1: error: fail to initialize plugin /home/sandeep/ispec/tool/gcc_plugin/g

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-30 Thread Sandeep K Chaudhary
Here it is : sandeep@ubuntu:~/ispec$ avr-gcc -v Using built-in specs. COLLECT_GCC=avr-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/avr/4.8.2/lto-wrapper Target: avr Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man --bindir=/u

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-30 Thread Senthil Kumar Selvaraj
On Tue, Jul 29, 2014 at 03:23:24PM -0400, Sandeep K Chaudhary wrote: > Hi Senthil, > > Thanks again for your quick response ! > > On Tue, Jul 29, 2014 at 3:45 AM, Senthil Kumar Selvaraj < > senthil_kumar.selva...@atmel.com> wrote: > > > On Mon, Jul 28, 2014 at 08:18:04PM -0400, Sandeep K Chaudha

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-29 Thread Sandeep K Chaudhary
Hi Senthil, Thanks again for your quick response ! On Tue, Jul 29, 2014 at 3:45 AM, Senthil Kumar Selvaraj < senthil_kumar.selva...@atmel.com> wrote: > On Mon, Jul 28, 2014 at 08:18:04PM -0400, Sandeep K Chaudhary wrote: > > Hi Senthil, > > > > Thanks a lot for your reply ! > > > > As reported i

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-29 Thread Senthil Kumar Selvaraj
On Mon, Jul 28, 2014 at 08:18:04PM -0400, Sandeep K Chaudhary wrote: > Hi Senthil, > > Thanks a lot for your reply ! > > As reported in my previous email, I see that gcc is configured with > "--enable-shared". Does it mean that plugin support is not turned off? The gcc you checked appears to be

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-29 Thread Jeremy Bennett
On 29/07/14 01:15, Sandeep K Chaudhary wrote: > Hi Jeremy ! > > Thanks a lot for your reply ! Please see my reply inline. > Hi Sandeep, Comments below > > Here is the output of "gcc -v" : > > sandeep@ubuntu:~/ispec$ gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-28 Thread Sandeep K Chaudhary
Hi Senthil, Thanks a lot for your reply ! As reported in my previous email, I see that gcc is configured with "--enable-shared". Does it mean that plugin support is not turned off? Yes, it would be great if you can please share a build off latest gcc with plugin support enabled. Thanks again, S

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-28 Thread Sandeep K Chaudhary
Hi Jeremy ! Thanks a lot for your reply ! Please see my reply inline. On Thu, Jul 24, 2014 at 3:35 AM, Jeremy Bennett wrote: > On 24/07/14 03:38, Sandeep K Chaudhary wrote: >> Hi Guys, >> >> I wish to implement a GCC plugin that can work with avr-gcc. I came to >> realize that the latest avr-gcc

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-24 Thread Senthil Kumar Selvaraj
On Wed, Jul 23, 2014 at 10:38:48PM -0400, Sandeep K Chaudhary wrote: > Hi Guys, > > I wish to implement a GCC plugin that can work with avr-gcc. I came to > realize that the latest avr-gcc or avr-g++ is based off GCC 4.8.2. > However, the whole GCC plugin APIs were introduced in 4.9.0. > Therefore

Re: [avr-gcc-list] GCC plugin for avr-gcc

2014-07-24 Thread Jeremy Bennett
On 24/07/14 03:38, Sandeep K Chaudhary wrote: > Hi Guys, > > I wish to implement a GCC plugin that can work with avr-gcc. I came to > realize that the latest avr-gcc or avr-g++ is based off GCC 4.8.2. > However, the whole GCC plugin APIs were introduced in 4.9.0. > Therefore, the 'fplugin' option

[avr-gcc-list] GCC plugin for avr-gcc

2014-07-23 Thread Sandeep K Chaudhary
Hi Guys, I wish to implement a GCC plugin that can work with avr-gcc. I came to realize that the latest avr-gcc or avr-g++ is based off GCC 4.8.2. However, the whole GCC plugin APIs were introduced in 4.9.0. Therefore, the 'fplugin' option is not present with the latest avr-gcc. Can someone pleas