This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [build, ada] Allow Solaris bootstrap with C++ (PR bootstrap/49794)
- From: Ian Lance Taylor <iant at google dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Jul 2011 10:43:13 -0700
- Subject: Re: [build, ada] Allow Solaris bootstrap with C++ (PR bootstrap/49794)
- References: <yddbowonc44.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
> diff --git a/gcc/config/sol2-c.c b/gcc/config/sol2-c.c
> --- a/gcc/config/sol2-c.c
> +++ b/gcc/config/sol2-c.c
> @@ -68,7 +68,7 @@ static const format_char_info cmn_err_ch
> { NULL, 0, STD_C89, NOLENGTHS, NULL, NULL, NULL }
> };
>
> -const format_kind_info solaris_format_types[] = {
> +extern const format_kind_info solaris_format_types[] = {
> { "cmn_err", cmn_err_length_specs, cmn_err_char_table, "", NULL,
> cmn_err_flag_specs, cmn_err_flag_pairs,
> FMT_FLAG_ARG_CONVERT|FMT_FLAG_EMPTY_PREC_OK,
s/extern const/EXPORTED_CONST/
(see various other uses of EXPORTED_CONST).
This patch is OK with that change.
Ian