This is the mail archive of the
mailing list for the GCC project.
Re: VAX PATCH: remove FILE_NAME_NONDIRECTORY
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: VAX PATCH: remove FILE_NAME_NONDIRECTORY
- From: Tom Tromey <tromey at redhat dot com>
- Date: 22 Feb 2001 21:33:53 -0700
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- References: <200102222019.PAA02273@hiauly1.hia.nrc.ca>
- Reply-To: tromey at redhat dot com
>>>>> "Dave" == John David Anglin <email@example.com> writes:
Dave> There is only one place basename is used: mkdeps.c. In general,
Dave> it appears that an effort was made to avoid it. Here is a
Dave> comment from ChangeLog.1:
Dave> * fixproto: Avoid unportable constructs such as `basename' and
Dave> `mkdir -p'. Use mkinstalldirs from the environment if `mkdir -p'
Dave> The libiberty version only builds if the system doesn't have it.
Dave> However, the system version isn't portable according to the
Dave> above comment. This probably is an argument for libiberty to
Dave> always build basename. Then, gcc could likely use it.
The basename referred to here is the program basename(1), not the
library function basename(3). fixproto is a shell script. So this
isn't actually supporting evidence for your argument.