* x86_64 build error converting poly_value_estimate_kind
@ 2020-12-17 19:06 Martin Sebor
2020-12-17 19:12 ` H.J. Lu
0 siblings, 1 reply; 3+ messages in thread
From: Martin Sebor @ 2020-12-17 19:06 UTC (permalink / raw)
To: Kyrylo Tkachov, gcc-patches
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;
^~~~~~~~~~~~~~~~~~
Thanks
Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: x86_64 build error converting poly_value_estimate_kind
2020-12-17 19:06 x86_64 build error converting poly_value_estimate_kind Martin Sebor
@ 2020-12-17 19:12 ` H.J. Lu
2020-12-17 19:37 ` Martin Sebor
0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2020-12-17 19:12 UTC (permalink / raw)
To: Martin Sebor; +Cc: Kyrylo Tkachov, gcc-patches
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.tools@gmail.com>
Date: Thu Dec 17 11:00:02 2020 -0800
Update default_estimated_poly_value prototype in targhooks.h
--
H.J.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: x86_64 build error converting poly_value_estimate_kind
2020-12-17 19:12 ` H.J. Lu
@ 2020-12-17 19:37 ` Martin Sebor
0 siblings, 0 replies; 3+ messages in thread
From: Martin Sebor @ 2020-12-17 19:37 UTC (permalink / raw)
To: H.J. Lu; +Cc: Kyrylo Tkachov, gcc-patches
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.tools@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-17 19:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 19:06 x86_64 build error converting poly_value_estimate_kind Martin Sebor
2020-12-17 19:12 ` H.J. Lu
2020-12-17 19:37 ` Martin Sebor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).