On 12/17/20 12:12 PM, H.J. Lu wrote:
On Thu, Dec 17, 2020 at 11:07 AM Martin Sebor via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:

The top of trunk fails to build with the error below.  I haven't
spent any time debugging it except to look at git log where
the description for r11-6238 mentions the function also referenced
in the error message.  Could the patch be responsible for this?
https://gcc.gnu.org/pipermail/gcc-cvs/2020-December/339535.html

In file included from /src/gcc/master/gcc/target-def.h:121,
                   from /src/gcc/master/gcc/config/i386/i386.c:100:
./target-hooks-def.h:2523:3: error: invalid conversion from ‘long int
(*)(poly_int64)’ {aka ‘long int (*)(poly_int<1, long int>)’} to ‘long
int (*)(poly_int64, poly_value_estimate_kind)’ {aka ‘long int
(*)(poly_int<1, long int>, poly_value_estimate_kind)’} [-fpermissive]
     }
     ^
/src/gcc/master/gcc/config/i386/i386.c:23857:29: note: in expansion of
macro ‘TARGET_INITIALIZER’
   struct gcc_target targetm = TARGET_INITIALIZER;
                               ^~~~~~~~~~~~~~~~~~

It has been fixed by

commit 4a7a3110c70da8bad6978a36d9da3836538a0cc3
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Thu Dec 17 11:00:02 2020 -0800

     Update default_estimated_poly_value prototype in targhooks.h

I can confirm the error is gone.  Thanks!

Martin

Reply via email to