This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: More initialization cleanup
Richard Henderson wrote:-
> On Mon, Nov 19, 2001 at 07:25:59PM +0000, Neil Booth wrote:
> > c_post_options ()
> > {
> > + c_common_post_options ();
> > }
>
> Why bother with this function at all? Just put c_common_post_options
> as the language hook. Likewise for the other languages.
The main reason is it's really simple to add something to it, without
having the hassle of re-creating the hook. Since there's no
bottleneck since it's only run once, I reckoned it was worth it.
Further, it looked like further cleaning up the C front-end
initialization would provide language-specific code for such places.
At present various code scattered randomly around makes initialization
decisions based on flags.
So OK to keep it? When I've finished, if it remains trivial, I can
remove it if you like.
Neil.