Yes I got your point that it will be invoked per function but it poses an error when there are 2 or more functions in the source file. Is there any thing that I am missing. If things are working even for both the functions at GIMPLE level, then why not at RTL? Regards On Thu, May 19, 2011 at 7:29 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: > Abdul Wahid Memon <engrwahidmemon@xxxxxxxxx> writes: > >> Thanks alot Ian. Actually it is working but when there is only once >> function in the source file. What to do when there are more than one >> functions. > > An RTL pass will normally be invoked once for each function. > > Ian >