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]

Re: [RFC] Let's kill specs, completely rewrite gcc.c


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.

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