PR traget/24188 (-mcmodel=medium ICE)

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Fri Nov 4 21:21:00 GMT 2005


Jakub Jelinek wrote:
> That's a Fortran string, not C.  So empty string there is really 0 bytes
> long.  Now the question is if it is really needed for the zero sized
> string literal to actually make it down to the rtl passes in the common
> cases.
> The empty string literal will appear in calls like:
> _gfortran_transfer_character ("", 0);
> or
> _gfortran_copy_string (10, &a, 0, "");
> etc.
> But I'm pretty certain none of those intrinsic routines would mind
> if NULL has been passed instead.

They are implemented using memcpy, strcat and the like.  Is it valid to assume
that they will handle a NULL argument gracefully?

- Tobi



More information about the Fortran mailing list