This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: GCC_DRIVER_HOST_INITIALIZATION in gcc.c


On Tue, 2004-01-20 at 17:25, DJ Delorie wrote:
> The DJGPP stuff is not obsolete.  At least, the need to change the
> install prefix at runtime is still there.

Progress sometimes demands that old features be removed.  I think this
is a feature that should be removed.  I accept that you still need this
functionality, but I think it should be implemented differently.

> > Or maybe you can add another variable standard_startfile_prefix_0
> > which can be set by the host to override the other ones?
> 
> How is this any different than what we used to do?

standard_startfile_prefix is initialized to a string in gcc.c, and never
modified.  This is just begging to have a const type qualifier.  Asking
to remove the const because of an unusual macro use does not make
sense.  It is better to fix the unusual macro use.

standard_startfile_prefix_0 would not be initialized to a string, and
would have a comment indicating that it exists for communication with
the GCC_DRIVER_HOST_INITIALIZATION/UPDATE_PATH_HOST_CANONICALIZE macros
that some ports define.  This would make the relationship explicit, and
easier to maintain.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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