This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: VAX PATCH: remove FILE_NAME_NONDIRECTORY


>>>>> "Dave" == John David Anglin <dave@hiauly1.hia.nrc.ca> 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> 	fails.

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.

Tom


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