This patch moves some globals in c-format.c into a structure.
It was bootstrapped and regtested on x86 FC 6
2007-10-12 Tom Tromey <firstname.lastname@example.org>
* c-format.c (dollar_argument_info): New struct.
dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
(init_dollar_format_checking): Add 'state' argument.
(check_format_info_inner): Likewise. Renamed from
(check_format_info_main): New function.
Created attachment 14355 [details]
remove globals from c-format.c
It would be nice to submit this patch before stage3.
FWIW -- I think this patch turned out to have some GC-related bug.
And, I don't think I need this for the incremental branch either, any more.
So, I'm just dropping it and closing this.
If someone else wants to clean it up, that is fine by me.