This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, Fortran] PR40427: [F03] Procedure Pointer Components with OPTIONAL arguments
- From: Tobias Burnus <burnus at net-b dot de>
- To: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org, Janus Weil <janus at gcc dot gnu dot org>
- Date: Tue, 23 Jun 2009 14:34:41 +0200
- Subject: Re: [Patch, Fortran] PR40427: [F03] Procedure Pointer Components with OPTIONAL arguments
Janus Weil wrote:
> here is my patch for PR 40427, which makes PPCs with OPTIONAL components work.
> Unfortunately this is mainly accomplished by duplicating code that
> works on normal procedures or procedure pointers (e.g.
> gfc_procedure_use or gfc_copy_formal_args), since I did not find a
> more elegant solution to this (if anyone has an idea for a more
> unified design, I'd be happy to hear it).
Since they are rather short, it is not too bad - just that we need
to remember to keep both up to date (which will not work ...).
> The patch is regression-tested on x86_64-unknown-linux-gnu.
> Ok for trunk?
As you have modified what is put into the .mod files, you need
to bump the module version:
#define MOD_VERSION "0"
Otherwise it looks OK to me.