RE: question about pass management

2005-08-31 Thread Daniel Berlin
On Wed, 2005-08-31 at 10:50 +0100, Dave Korn wrote: > Original Message > >From: Paolo Bonzini > >Sent: 31 August 2005 10:07 > > >> if I modify the type of my_funct to take 3 args (int, int, float), > >> then the type checker ( which runs before my pass for "main" ) bombs > >> out saying th

RE: question about pass management

2005-08-31 Thread Dave Korn
Original Message >From: Paolo Bonzini >Sent: 31 August 2005 10:07 >> if I modify the type of my_funct to take 3 args (int, int, float), >> then the type checker ( which runs before my pass for "main" ) bombs >> out saying that the call to "my_funct" has lesser than required >> parameters.

Re: question about pass management

2005-08-31 Thread Paolo Bonzini
if I modify the type of my_funct to take 3 args (int, int, float), then the type checker ( which runs before my pass for "main" ) bombs out saying that the call to "my_funct" has lesser than required parameters. Where should I be running this pass? The way it looks is that i need the pass manage

question about pass management

2005-08-31 Thread Prateek Saxena
Hi, I have to run a pass which modifies the function types of all functions in a a C file, by adding an extra parameter to each function. If this pass runs like all other optimization passes, then this pass runs when each function is being processed. So, for a prog like this: int my_funct(in