[RFC] Let's kill specs, completely rewrite gcc.c
Neil Booth
neil@daikokuya.demon.co.uk
Sun Jan 7 13:31:00 GMT 2001
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.
More information about the Gcc
mailing list