This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC_DRIVER_HOST_INITIALIZATION in gcc.c
- From: "Graeme Peterson" <gp at qnx dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 20 Jan 2004 14:40:31 -0500
- Subject: GCC_DRIVER_HOST_INITIALIZATION in gcc.c
Hi.
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:
/dev/env/DJDIR/....
QNX uses env vars (QNX_HOST and QNX_TARGET) that represent install paths for
our tools. The problem is that the code in xm-djgpp.h, and now in nto.h
also, needs to update standard_exec_prefix, standard_bindir_prefix, and
standard_startfile_prefix which are declared in gcc.c. Unfortunately the
declarations of these variables has changed from "static const char *" to
"static const char *const", so any attempt to change them fails.
Any chance of changing them back to "static const char *"?
Thanks.
GP