https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106172

--- Comment #15 from Chris Clayton <chris2553 at googlemail dot com> ---
On 04/07/2022 00:12, pinskia at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106172
> 
> Andrew Pinski <pinskia at gcc dot gnu.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |WAITING
>      Ever confirmed|0                           |1
>    Last reconfirmed|                            |2022-07-03
> 
> --- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>> make[2]: *** [Makefile:20255: all-stage2-target-libgcc] Error 2
>> make[2]: Leaving directory 
>> '/home/chris/rpm/BUILD/gcc-obj-x86_64-pc-linux-gnu'
>> make[1]: *** [Makefile:25739: stage2-bubble] Error 2
>> make[1]: Leaving directory 
>> '/home/chris/rpm/BUILD/gcc-obj-x86_64-pc-linux-gnu'
>> make: *** [Makefile:1072: all] Error 2
> 
> 
> Did you set any CFLAGS or STAGE1_CFLAGS (or CXXFLAGS) env?
> What the above means is stage1 is being miscompiled.

I build and manage packages with rpm. Through rpmbuild the default for CFLAGS
is "-O2 -g". To that I add
"-mindirect-branch=thunk" to build with retpoline enabled.

> I Noticed you used --disable-checking, these days the default for releases is
> --enable-checking=release rather than --disable-checking (slightly different
> though).

Is that likely to be the source of the problem? If not, I'll look into it when
this problem is solved.
> 

Another data point - I've just tried to build gcc-13-20220626 with gcc-10.4.0
and get the same batch of ICEs.

Reply via email to