From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Booth To: Per Bothner Cc: gcc@gcc.gnu.org Subject: Re: [RFC] Let's kill specs, completely rewrite gcc.c Date: Sun, 07 Jan 2001 13:31:00 -0000 Message-id: <20010107213131.B25572@daikokuya.demon.co.uk> References: X-SW-Source: 2001-01/msg00312.html 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.