[patch, fortran] Add _gfortran_error_stop_numeric

Janne Blomqvist blomqvist.janne@gmail.com
Fri May 14 18:24:00 GMT 2010


On Fri, May 14, 2010 at 08:29, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> I think your patch may break the runtime library ABI.  Please
> check with Janne on the required symbol version issues.  In
> particular,
>
>  /* A numeric or blank STOP statement.  */
>
> -extern void pause_numeric (GFC_INTEGER_4 code);
> +extern void pause_numeric (GFC_INTEGER_8 code, GFC_INTEGER_4 flag);
>  export_proto(pause_numeric);
>
> If GNU follows FreeBSD versioning rules, you can't do
> the above because pause_numeric is in the GFORTRAN_1.0
> symbol space with the old prototype.  You need to create
> a new function and add it to whatever is the current
> GFORTRAN_1.x namespace.
>
> Of course, I'll defer to Janne.

Yes, this is how GNU symbol versioning works as well. So yes, the
patch breaks the ABI.


-- 
Janne Blomqvist



More information about the Gcc-patches mailing list