This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [Patch,Fortran] PR40949 - Fix gfc_get_function_type to fix -flto failure


Tobias Burnus wrote:
Hello,

the test case gfortran.dg/proc_ptr_7.f90 fails on the LTO branch with "-flto -O3"
without the attached patch as the function prototype is wrong.

The problem is that if one does not add a trailing void node, the middle end
assumes that one is allowed to pass more arguments (cf. C's "..."). The void
node was added - except for the case of no arguments.

The fix is rather trivial.
Bootstrapped and regtested on x86-64-linux & build and tested with
gfortran.dg/proc_ptr_7.f90 on the LTO branch.

OK for the trunk?

Ok.


Thanks!

Daniel

--
Done:  Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri


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