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] |
Hi all, Following the removal of _gfortran_internal_free and _gfortran_internal_malloc and the switch to emitting inline code for them, here is a patch that removes the last front-end calls to routines in libgfortran/runtime/memory.c. This is done to: * allow further optimisation by the middle-end * in particular, there are cases where (with current mainline) we create STATUS variable that are passed to the library and then discarded (for failproof deallocation at the end of procedures); in this case, the front-end now doesn't emit the unnecessary code * the new scheme allows for easy instrumentalisation of the allocation/deallocation routines. I intend to provide (in 4.4) an -fmem-check option that registers allocations and deallocations, allowing the detection of memory leaks. Built (not bootstrapped) and regtested on i686-darwin. I'm in not position to compile and run cp2k and other "extended" testsuites, if anyone has time and resources to do it, I'd appreciate it. OK to commit? (This will also require approval from a middle-end maintainer.) FX :ADDPATCH fortran:
Attachment:
alloc.ChangeLog
Description: Binary data
Attachment:
alloc.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |