This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: question about pass management


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 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 manager to run my pass for all the functions,
> >> instead of running all the passes for each function, and then
> >> processing the next function. Is this possible to specify to the pass
> >> manager?
> > 
> > My guess is that you should run your pass as part of the
> > inter-procedural analysis passes (IPA).  Maybe only if
> > flag_unit_at_a_time is set.
> > 
> > Paolo
> 
> 
>   My guess is that he should modify the relevant language frontend to add
> the new parameter from the first moment it creates the trees for functions
> and calls, rather than using an optimiser pass at all.  Would that
> necessarily be any more difficult, overall?

He's going to have to do that for all the frontends then, if he wants to
handle all the languages gcc supports.

This is something that the IPA level optimizers should be able to do
already without any pain, since it doesn't actually modify the
callgraph.


> 
> 
>     cheers,
>       DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]