This is the mail archive of the
mailing list for the GCC project.
Re: 3.2 PATCH: Ada parallel bootstrap fixes
- From: Geert Bosch <bosch at gnat dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 18 May 2002 11:14:59 -0400
- Subject: Re: 3.2 PATCH: Ada parallel bootstrap fixes
On Saturday, May 18, 2002, at 10:36 , Florian Weimer wrote:
> If I read the Ada standard correctly, temporary files do not need to
> have names, so the code is in fact unnecessarily complex (we could
> simply call tmpfile() and rely on the C library getting it right, most
> of the problems stem from the fact that mkstemp() is a rather late
> addition to the POSIX C library, and we cannot assume that it is
> available widely).
If there is a name with which the file can be accessed, then the Name
function should indeed return this name. However, since it would
be OK to implement temporary files in such a way that they cannot be
named, and since in such cases the Name function would raise Use_Error,
one could argue that it is hard to imagine Ada programs depending
on being able to get the Name of a temporary file.
On the other hand, GNAT always has allowed retrieving the name of a
temporary file and there may well be users who rely on this behaviour.