[PATCH] Fix for PR fortran/21375

Paul Brook paul@codesourcery.com
Sun Jun 5 17:46:00 GMT 2005


> See attached patch (for a fun exercise in hacking).
> Bootstrapped and regression tested on i386-*-freebsd.
> ChangeLog entries for patch and test case are the
> same as in the first email of the thread.

>+       apstat = gfc_build_addr_expr (NULL, astat);
>+       apstat = build_int_cst (gfc_int4_type_node, 0);

This looks wrong. Assigning to a variable then immediately overwriting its 
value.

Presumably there should be some library changes to go with this patch?
It's also missing a ChangeLog entry.

It would also be nice to have a comment that explained (in C or pseudocode) 
what we the code we generate should look like.

Paul



More information about the Fortran mailing list