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: [build, ada] Allow Solaris bootstrap with C++ (PR bootstrap/49794)


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


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