public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Janus Weil <janus@gcc.gnu.org>
To: Tobias Burnus <burnus@net-b.de>
Cc: gcc patches <gcc-patches@gcc.gnu.org>, gfortran <fortran@gcc.gnu.org>
Subject: Re: [Patch, Fortran] No-op Patch - a.k.a. FINAL wrapper update
Date: Thu, 29 Nov 2012 22:59:00 -0000	[thread overview]
Message-ID: <CAKwh3qg8K3amDzHwvKgxzBxT=A6Xathhm4s0J+EgmXkVftyTXw@mail.gmail.com> (raw)
In-Reply-To: <50B5067B.9070005@net-b.de>

Hi Tobias,

> effectively, this patch doesn't do anything. Except, it updates the –
> deactivated – finalization wrapper.
>
>
> Note: This patch does not include any code to actually call the finalization
> wrapper. Nor is the modified code ever called in gfortran. However, that
> patch paves the road to a proper finalization (and polymorphic deallocation)
> support. When I mention below that I tested the patch: That was with the
> larger but incomplete final-2012-11-27-v2.diff patch, available at
> https://userpage.physik.fu-berlin.de/~tburnus/final/ Note that the patch
> there has known issues and does not incorporate all of Janus changes.

one thing that I do not like about your patch is the modification of
"gfc_find_derived_vtab": You create two versions of it, one of which
creates the vtab if it does not exist, while the other version does
not do this. In short: I think this is not needed (it was removed in
my version of the FINAL patch). Or can you explain to me why this
would be necessary?

[Moreover, the problem is that your new "gfc_find_derived_vtab"
behaves different from the old one but has the same name, while your
new "gfc_get_derived_vtab" behaves like the old
"gfc_find_derived_vtab". Therefore, the places where you change the
behavior by keeping the call to "gfc_find_derived_vtab" are not
visible in the patch.]

Cheers,
Janus

  reply	other threads:[~2012-11-29 22:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-27 18:29 Tobias Burnus
2012-11-29 22:59 ` Janus Weil [this message]
2012-11-30  1:53   ` Tobias Burnus
2012-11-30 10:30     ` Janus Weil
2012-11-30 10:39       ` Janus Weil
2012-11-30 12:29       ` Tobias Burnus
2012-12-02 22:54         ` Janus Weil
2018-10-15  9:02           ` [PATCH,FORTRAN] Fix memory leak in finalization wrappers Bernhard Reutner-Fischer
2021-10-27 21:39             ` Bernhard Reutner-Fischer
2021-10-28 23:58               ` Bernhard Reutner-Fischer
2021-11-05 18:46                 ` Mikael Morin
2021-11-05 22:08                   ` Bernhard Reutner-Fischer
2021-11-06 12:04                     ` Mikael Morin
2021-11-06 23:56                       ` Bernhard Reutner-Fischer
2021-11-07 12:32                         ` Mikael Morin
2021-11-14 19:53                           ` Bernhard Reutner-Fischer
2021-11-06 10:30                   ` Mikael Morin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKwh3qg8K3amDzHwvKgxzBxT=A6Xathhm4s0J+EgmXkVftyTXw@mail.gmail.com' \
    --to=janus@gcc.gnu.org \
    --cc=burnus@net-b.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).