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


Graeme Peterson wrote:
I am trying to use the same mechanism as is found in
gcc/config/i386/xm-djgpp.h, where GCC_DRIVER_HOST_INITIALIZATION and
UPDATE_PATH_HOST_CANONICALIZE are defined for the purpose of expanding an
env var that represents a path:

This stuff looks ugly and obsolete. The variables like standard_startfile_prefix really look like they should be const, and it is very unobvious that someone might want to modify them in these macros. I'd suggest looking for a cleaner solution. Perhaps you can call add_prefix instead? You might have to add another priority level for this to work. Maybe you can use existing environment variables like GCC_EXEC_PREFIX? Or maybe you can add another variable standard_startfile_prefix_0 which can be set by the host to override the other ones?
--
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]