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
Per Bothner wrote:-
> Can we separate out the table of options from gcc.c and place it
> in a separate file so toplev.c etc could use it? This file might also
> include some of the utility routines, like the function that does a
> binary search on an option name.
How would you propose handling the fact that the full table would have
combined cpp / C / linker / assembler options (plus C++ / fortran
etc. specific ones)? It would probably also need some target-specific
options; I've not got much experience in that area.
Maybe we have one master .tab file, for consistency across everything,
and process it through different scripts at GCC compile time depending
upon the user? gcc.c would want a script that combines everything and
sorts it; other scripts could filter it for whatever toplev.c or
c-decl.c or cp/decl2.c etc. require?
Neil.