https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45920
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
STAGE1_CFLAGS and STAGE1_CXXFLAGS need to be set.
And this is documented:
BOOT_CFLAGS does not apply to bootstrapped target libraries. Since these are
always compiled with the compiler currently being bootstrapped, you can use
CFLAGS_FOR_TARGET to modify their compilation flags, as for non-bootstrapped
target libraries. Again, if the native compiler miscompiles the stage1
compiler, you may need to work around this by avoiding non-working parts of the
stage1 compiler. Use STAGE1_TFLAGS to this end.
You can use STAGE1_CFLAGS to set the flags passed to the host compiler when
building the stage1 compiler. The default is to pass -g, but when the host
compiler is GCC, this results in a non-optimized build of the stage1 compiler.
You can speed up the bootstrap by using ‘STAGE1_CFLAGS='-O2'’ at the increased
risk of miscompiling the stage1 compiler when the host compiler is buggy.