This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Little libgfortran constification
- From: Steven Bosscher <stevenb at suse dot de>
- To: fortran at gcc dot gnu dot org, Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Sep 2005 15:32:17 +0200
- Subject: Re: [PATCH] Little libgfortran constification
- References: <20050929133027.GO1020@devserv.devel.redhat.com>
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