On Wed, Apr 06, 2022 at 09:44:33PM +0800, Xi Ruoyao wrote:
> @@ -6527,6 +6554,27 @@ mips_function_value_1 (const_tree valtype, const_tree 
> fn_decl_or_type,
>        if (has_cxx_zero_width_bf)
>       use_fpr = 0;
>  
> +      if (TARGET_HARD_FLOAT
> +       && warn_psabi
> +       && use_fpr != 0
> +       && has_cxx17_empty_base)
> +     {
> +       static unsigned last_reported_type_uid;
> +       unsigned uid = TYPE_UID (TYPE_MAIN_VARIANT (valtype));
> +       if (uid != last_reported_type_uid)
> +         {
> +           static const char *url
> +             = CHANGES_ROOT_URL
> +               "gcc-12/changes.html#mips_cxx17_empty_bases";
> +           inform (input_location,
> +                   "the ABI for returning a value with C++ 17 empty "

Better write C++17 without space, that is what is used elsewhere too.
Ok with that change.

        Jakub

Reply via email to