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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sjames at gcc dot gnu.org

--- Comment #22 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #12)
> (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.

I think we forcefully ignore that unless STAGE1_C{,XX}FLAGS is set.

Reply via email to