This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33787] New: remove globals from c-format.c
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2007 19:58:32 -0000
- Subject: [Bug c/33787] New: remove globals from c-format.c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 <tromey@redhat.com>
* c-format.c (dollar_argument_info): New struct.
(dollar_arguments_used, dollar_arguments_pointer_p,
dollar_arguments_alloc, dollar_arguments_count,
dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
Remove.
(init_dollar_format_checking): Add 'state' argument.
(maybe_read_dollar_number): Likewise.
(finish_dollar_format_checking): Likewise.
(check_format_info_inner): Likewise. Renamed from
check_format_info_main.
(check_format_info_main): New function.
--
Summary: remove globals from c-format.c
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tromey at gcc dot gnu dot org
OtherBugsDependingO 33702
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33787