This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 38160 - C Binding: Kind parameter checking too strict and too late
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Sun, 16 Nov 2008 12:25:48 -0800
- Subject: Re: [Patch, Fortran] PR 38160 - C Binding: Kind parameter checking too strict and too late
- References: <49207D47.50406@net-b.de>
On Sun, Nov 16, 2008 at 09:06:31PM +0100, Tobias Burnus wrote:
> Index: gcc/fortran/symbol.c
> ===================================================================
> --- gcc/fortran/symbol.c (Revision 141918)
> +++ gcc/fortran/symbol.c (Arbeitskopie)
> @@ -3003,6 +3003,24 @@ gfc_free_finalizer_list (gfc_finalizer*
> }
>
>
> +/* Free the charlen list from cl to end (end is not freed).
> + Free the whole list if end is NULL. */
> +
> +void gfc_free_charlen (gfc_charlen *cl, gfc_charlen *end)
> +{
> + gfc_charlen *cl2;
> +
> + for (; cl != end; cl = cl2)
> + {
> + gcc_assert (cl);
> +
> + cl2 = cl->next;
> + gfc_free_expr (cl->length);
> + gfc_free (cl);
> + }
> +}
It looks like you have two patches mingled here. At least,
your ChangeLog does mention the above.
--
steve