This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR28585: Add Fortran 2003 NEW_LINE intrinsic function
On Thu, Sep 28, 2006 at 07:29:18AM +0200, FX Coudert wrote:
> >I also need to go read the F2003 standard to see
> >what this intrinsic does because its name suggests that gfortran
> >can constant-fold the intrinsics away.
>
> I'm a bit worried that not all systems supported by gfortran use \n
> as newline. E.g., i386-pc-mingw32 uses \n\r.
>
Yes, that is a concern. We can probably ping Richard Maine for
the requirements of the standard. Without looking, I would guess
the standard simple says that new_line() provides a single
CHARACTER. On input/output the processor is permitted to translate
a \n to \r\n, but new_line() itself must return \n.
--
Steve