On Thu, 2024-02-22 at 19:09 +0800, chenglulu wrote:
> 
> 在 2024/2/22 下午6:20, Xi Ruoyao 写道:
> > To improve Binutils compatibility we've had to backported relaxation
> > support.  But if a user just updates to GCC 13.3 and sticks with
> > Binutils 2.41, there is no reason to use -mno-explicit-relocs as the
> > default because we are turning off relaxation for Binutils 2.41 (it
> > lacks conditional branch relaxation support) anyway.
> > 
> > So like GCC 14, make the default of -m[no-]explicit-relocs depend on
> > -m[no-]relax instead of HAVE_AS_MRELAX_OPTION.  Also update the doc
> > to
> > reflect the behavior change.
> > 
> > gcc/ChangeLog:
> > 
> >     * config/loongarch/genopts/loongarch.opt.in
> >     (TARGET_EXPLICIT_RELOCS): Init to M_OPTION_NOT_SEEN.
> >     * config/loongarch/loongarch.opt: Regenerate.
> >     * config/loongarch/loongarch.cc
> >     (loongarch_option_override_internal): Set the default of
> >     TARGET_EXPLICIT_RELOCS to HAVE_AS_EXPLICIT_RELOCS
> >     && !loongarch_mrelax.
> >     * doc/invoke.texi (-m[no-]explicit-relocs): Update for
> >     LoongArch.
> > ---
> > 
> > Ok for releases/gcc-13?
> 
> LGTM!

Pushed r13-8357.

-- 
Xi Ruoyao <xry...@xry111.site>
School of Aerospace Science and Technology, Xidian University

Reply via email to