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

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Erich Löw from comment #10)
> Envs:
> 
> GCCVERSION=15.0.1
> CCFLAGS=-pipe -march=native -O2 -fPIC -fomit-frame-pointer
> 
> $GCCVERSION is initialized as this:
> export GCCVERSION=`gcc -dumpfullversion`

Unset CFLAGS, CPPFLAGS, CCFLAGS and CXXFLAGS and try again.

I suspect stage1 compiler is being miscompiled by the older compiler. And
having C*FLAGS set is causing that.
By default stage1 compiler is built without any options to avoid being
miscompiled by the host compiler.

Reply via email to