This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Let's kill specs, completely rewrite gcc.c
- To: Nick Clifton <nickc at redhat dot com>
- Subject: Re: [RFC] Let's kill specs, completely rewrite gcc.c
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 8 Jan 2001 20:04:00 +0000
- Cc: gcc at gcc dot gnu dot org, cgd at sibyte dot com
- References: <200101081954.LAA04627@elmo.cygnus.com>
Nick Clifton wrote:-
> There is still a need for permanent run-time configuration of command
> line options.
Yes. I must admit that until this thread, I wasn't aware this was
possible. I knew there were switches to read in specs from a file,
but I'd never considered what that was for or what it implied.
> SPEC scripts used to be able to do this, but if we do
> not support them, then we will need to provide another mechanism.
> Perhaps a new command line option which takes a file name argument,
> reads the file, parses it and adds the contents as new entries in the
> builtin command line option table. Possibly there should be an
> environment variable which would have the same effect as well.
Yup. It would require a run-time qsort, which would add some overhead
(sorting around 500 strings, say).
Neil.