Removing gfc_free()
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun Mar 6 20:26:00 GMT 2011
On Sun, Mar 06, 2011 at 09:05:16PM +0100, FX wrote:
> I don't believe Janne was suggesting to remove assignements to
> NULL or anything else of the sort. I think he is saying that
> where we currently have (or emit) code such as:
>
> if (x) free(x)
>
> it should be simplified into:
>
> free(x)
>
> The two are functionally equivalent (the only reason they
> weren't in the first place was on very old pre-ANSI C compilers,
> which are nowhere to be found anymore).
>
Given the headaches that MingW (ie., sprintf) and HPUX (ie, ctime_r
and friends) have recently exposed, it may be prudent to wait for
stage 1 for this change.
--
Steve
More information about the Fortran
mailing list