This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATHCH] Disable inline asm for in-tree mpfr (PR69134)
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- Date: Tue, 5 Jan 2016 11:26:35 +0100 (CET)
- Subject: Re: [PATHCH] Disable inline asm for in-tree mpfr (PR69134)
- Authentication-results: sourceware.org; auth=none
- References: <HE1PR07MB0905C105ACF251FCE1780826E4F30 at HE1PR07MB0905 dot eurprd07 dot prod dot outlook dot com> <alpine dot DEB dot 2 dot 20 dot 1601051102400 dot 1926 at laptop-mg dot saclay dot inria dot fr>
- Reply-to: gcc-patches at gcc dot gnu dot org
On Tue, 5 Jan 2016, Marc Glisse wrote:
On Tue, 5 Jan 2016, Bernd Edlinger wrote:
an in-tree mpfr build enables inline asm code, which makes the
mips-bootstrap fail,
because at least mpfr 2.4.2 uses the "=h" constraint but in
config/mips/constraints.md
we find: "Formerly the @code{hi} register. This constraint is no longer
supported.".
Using asm code is generally not desirable for in-tree mpfr builds. So I
looked for a way
to disable the asm code, and found it can be done, but differently than for
in-tree gmp.
See the attached patch.
Note that, at least with recent versions, if you configure gmp with
--disable-assembly, the flag -DNO_ASM ends up in __GMP_CFLAGS (in gmp.h) and
mpfr thus uses it automatically.
Hmm, that probably doesn't apply here since gcc passes its own CC and
CFLAGS to mpfr, please ignore my message.
--
Marc Glisse