Function Inlining for FORTRAN

2005-07-20 Thread Canqun Yang
Hi, all Function inlining for FORTRAN programs always fails. If no one engages in it, I will give a try. Would you please give me some clues? Canqun Yang Creative Compiler Research Group. National University of Defense Technology, China.

Re: Function Inlining for FORTRAN

2005-07-20 Thread Paul Brook
On Wednesday 20 July 2005 15:35, Canqun Yang wrote: > Hi, all > > Function inlining for FORTRAN programs always fails. Not entirely true. Inlining of contained procedures works fine (or it did last time I checked). This should include inlining of siblings within a module. > If no

Re: Function inlining for FORTRAN

2005-07-20 Thread Joost VandeVondele
Hi, I don't think Paul's example is completely correct, I've created PR22571 with some more info. Cheers, Joost

Re: Function Inlining for FORTRAN

2005-07-20 Thread Steven Bosscher
On Wednesday 20 July 2005 17:22, Paul Brook wrote: > To implement (b) this needs to be changed to: > > - Do everything up until gfc_generate{,_module}_code as normal. > - Save the results somewhere and repeat for each PU. > - Identify calls for procedures for which we have definitions, and link > t

Re: Function inlining for FORTRAN

2005-07-20 Thread Paul Brook
On Wednesday 20 July 2005 16:52, Joost VandeVondele wrote: > Hi, > > I don't think Paul's example is completely correct, I've created PR22571 > with some more info. Ah, this makes thing somewhat simpler. For some reason I though my example was legal. I think this makes it possible to implement m

Re: Function Inlining for FORTRAN

2005-07-21 Thread Canqun Yang
Paul Brook <[EMAIL PROTECTED]>: > On Wednesday 20 July 2005 15:35, Canqun Yang wrote: > > Hi, all > > > > Function inlining for FORTRAN programs always fails. > > Not entirely true. Inlining of contained procedures works fine (or it did la > st > time I

Re: Function Inlining for FORTRAN

2005-07-21 Thread Paul Brook
n inlining to verify the effectiveness of it. > > Now, my question is: If we just take the FORTRAN 77 syntax into account (no > derived types, no complex aliasing), may it be simpler to implement > function inlining for FORTRAN 77. Maybe, but gfortran is a fortran 95 compiler so this is not an acceptable solution. Paul

Re: Function Inlining for FORTRAN

2005-07-22 Thread Michael Matz
Hi, On Wed, 20 Jul 2005, Steven Bosscher wrote: > On Wednesday 20 July 2005 17:22, Paul Brook wrote: > > To implement (b) this needs to be changed to: > > > > - Do everything up until gfc_generate{,_module}_code as normal. > > - Save the results somewhere and repeat for each PU. > > - Identify ca