Is it possible to get unpartitioned LTO with Fortran?

2012-04-23 Thread AJM-2
Hi, I have a simple IPA pass that requires access to all function bodies in a program. For C and small Fortran programs doing this at link time causes no issues. However, when I attempt to compile a larger Fortran program the pass is called multiple times at link time, each time with only a por

Re: IPA and LTO

2011-07-13 Thread AJM-2
Putting my "simple IPA pass" adjacent to IPA-PTA does cause it to be called as expected. However for each node in the call graph (with cgraph_function_body_availability returning AVAIL_AVAILABLE), gimple_has_body_p is always false. The call graph data seems to be available, but the documentation

Re: IPA and LTO

2011-07-13 Thread AJM-2
. Diego Novillo-3 wrote: > > On Wed, Jul 13, 2011 at 10:22, AJM-2 wrote: > >> My question is whether LTO can be used in this way, to have a simple ipa >> pass called once at link time with access to the function bodies, and if >> so >> how is this achieved?  

IPA and LTO

2011-07-13 Thread AJM-2
Hello, I have written a simple ipa pass and would like to make use of Link time optimisation. My pass requires access to the function bodies and ideally I would like the driver function to be called once at link time and have access to functions in all of the files as if they were one compilatio

IPA and LTO

2011-07-13 Thread AJM-2
Hello, I have written a simple ipa pass and would like to make use of Link time optimisation. My pass requires access to the function bodies and ideally I would like the driver function to be called once at link time and have access to functions in all of the files as if they were one compilatio