Repost of Gcc plugin for modification of source code ?

2014-06-15 Thread Mohsin Khan
Hi, I'm working on a gcc plugin project. I had a doubt, can somebody help me on this. Can we write a plugin (which works after a pass like cfg or any other) which can modify the source code of .C file, for example insert comments before function definitions or insert a new IF Block in the .C file.

Re: Gcc plugin for modification of source code ?

2014-06-15 Thread Mohsin Khan
Thanks Basile Starynkevitch for the useful reply. On 6/15/14, Basile Starynkevitch wrote: > On Sun, 2014-06-15 at 02:40 +0530, Mohsin Khan wrote: >> Hi, >> I'm working on a gcc plugin project. I had a doubt, can somebody help >> me on this. > > [no need

Gcc plugin for modification of source code ?

2014-06-14 Thread Mohsin Khan
Hi, I'm working on a gcc plugin project. I had a doubt, can somebody help me on this. Can we write a plugin (which works after a pass like cfg or any other) which can modify the source code of .C file, for example insert comments before function definitions or insert a new IF Block in the .C file.

Re: Can Some one please help me on this gcc plugin..

2014-03-06 Thread Mohsin Khan
Hi David, I am very much thankful to you as your answer worked wonders for me. The problem with the plugin is solved now. Thanks again. On 3/5/14, David Malcolm wrote: > On Wed, 2014-03-05 at 21:58 +0530, Mohsin Khan wrote: >> Hi, >> >> I am developing plugins for

Can Some one please help me on this gcc plugin..

2014-03-05 Thread Mohsin Khan
Hi, I am developing plugins for the GCC-4.8.2. I am a newbie in plugins. I wrote a plugin and tried to count and see the Goto Statements using the gimple_stmt_iterator. I get gimple statements printed on my stdout, but I am not able to find the line which has goto statements. I only get other lin

Re: Help Required on Missing GOTO statements in Gimple/SSA/CFG Pass ...

2014-03-05 Thread Mohsin Khan
Basile Starynkevitch wrote: > On Tue, 2014-02-18 at 11:17 +0530, Mohsin Khan wrote: >> Hi, >> >> I am developing plugins for the GCC-4.8.2. I am a newbie in plugins. >> I wrote a plugin and tried to count and see the Goto Statements using >> the gimple_stmt_iterator.

Help Required on Missing GOTO statements in Gimple/SSA/CFG Pass ...

2014-02-17 Thread Mohsin Khan
Hi, I am developing plugins for the GCC-4.8.2. I am a newbie in plugins. I wrote a plugin and tried to count and see the Goto Statements using the gimple_stmt_iterator. I get gimple statements printed on my stdout, but I am not able to find the line which has goto statements. I only get other lin