This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATHCH] Disable inline asm for in-tree mpfr (PR69134)


On 05.01.2016 20:23 Jeff Law wrote:
> On 01/05/2016 11:52 AM, Bernd Edlinger wrote:
>
>> Maybe, that can of course improve things but...
>>
>> I tried to update to gmp 6.0.0 a while ago, and I noticed that it won't
>> build unless we also update to latest mpfr and mpc at the same time.
> I just checked --  mpfr-3.1.3 only requires gmp-4.1 or newer.  So we 
> don't have to step gmp forward.  Just mpfr.
>
> Jeff

true. but mpc needs updating in that case:


/bin/bash ../libtool --tag=CC   --mode=compile mips-linux-gnu-gcc 
-DHAVE_CONFIG_H -I. -I../../../gcc-trunk/mpc/src -I.. 
-I/home/ed/gnu/gcc-build-mips2/./gmp -I/home/ed/gnu/gcc-trunk/mpfr/src   
-g -O2 -MT acos.lo -MD -MP -MF .deps/acos.Tpo -c -o acos.lo 
../../../gcc-trunk/mpc/src/acos.c
libtool: compile:  mips-linux-gnu-gcc -DHAVE_CONFIG_H -I. 
-I../../../gcc-trunk/mpc/src -I.. -I/home/ed/gnu/gcc-build-mips2/./gmp 
-I/home/ed/gnu/gcc-trunk/mpfr/src -g -O2 -MT acos.lo -MD -MP -MF 
.deps/acos.Tpo -c ../../../gcc-trunk/mpc/src/acos.c -o acos.o
../../../gcc-trunk/mpc/src/acos.c: In function 'mpc_acos':
../../../gcc-trunk/mpc/src/acos.c:192:19: error: 'GMP_RNDA' undeclared 
(first use in this function)
        : rnd_im == GMP_RNDA ? GMP_RNDZ
                    ^~~~~~~~

../../../gcc-trunk/mpc/src/acos.c:192:19: note: each undeclared 
identifier is reported only once for each function it appears in
make[4]: *** [acos.lo] Error 1
make[4]: Leaving directory `/home/ed/gnu/gcc-build-mips2/mpc/src'
Making all in tests
make[4]: Entering directory `/home/ed/gnu/gcc-build-mips2/mpc/tests'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/ed/gnu/gcc-build-mips2/mpc/tests'
Making all in doc
make[4]: Entering directory `/home/ed/gnu/gcc-build-mips2/mpc/doc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/ed/gnu/gcc-build-mips2/mpc/doc'
make[4]: Entering directory `/home/ed/gnu/gcc-build-mips2/mpc'
make[4]: Leaving directory `/home/ed/gnu/gcc-build-mips2/mpc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ed/gnu/gcc-build-mips2/mpc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ed/gnu/gcc-build-mips2/mpc'
make[1]: *** [all-mpc] Error 2
make[1]: Leaving directory `/home/ed/gnu/gcc-build-mips2'
make: *** [all] Error 2



Actually IIRC one of the tests in gmp-4.3.2 invokes undefined behavior 
and fails since a while, so that would also justify to move to the 
latest stable gmp version.


Bernd.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]