This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Little libgfortran constification


On Thursday 29 September 2005 15:30, Jakub Jelinek wrote:
> Hi!
>
> Constifies a few clearly constant global variables.
> Tested on x86_64-linux.
> Ok for HEAD?
>
> 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
>
> 	* runtime/string.c (find_option): Change 3rd argument to
> 	const st_option *.
> 	* libgfortran.h (find_option): Likewise.
> 	* runtime/environ.c (rounding, precision, signal_choices): Constify.
> 	(init_choice, show_choice): Change 2nd argument to const choice *.
> 	* io/open.c (access_opt, action_opt, blank_opt, delim_opt, form_opt,
> 	position_opt, status_opt, pad_opt): Constify.
> 	* io/transfer.c (advance_opt): Likewise.
> 	* io/inquire.c (undefined): Likewise.
> 	* io/close.c (status_opt): Likewise.
> 	* io/format.c (posint_required, period_required, nonneg_required,
> 	unexpected_element, unexpected_end, bad_string, bad_hollerith,
> 	reversion_error): Likewise.
> 	* io/unix.c (yes, no, unknown): Change from const char *
> 	into const char [].

OK if you're not getting any new warnings in the libgfortran build.

Gr.
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]