This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR traget/24188 (-mcmodel=medium ICE)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]