Re: GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

2012-06-26 Thread Torbjorn Granlund
ni...@lysator.liu.se (Niels Möller) writes: I think it makes sense to have --disable-assembly disable *all* use of assembly source files. Maybe. I suppose the file now in question is used only by tests/devel/try for detecting ABI breaches. Compiler generated code should not need such

Re: GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

2012-06-26 Thread Richard Guenther
On Tue, 26 Jun 2012, Torbjorn Granlund wrote: Richard Guenther rguent...@suse.de writes: But the failure mode is assembling assembler source - GMP should arrange to not use the compiler driver to assemble but to call an assembler directly for assembler source. Are you volunteering

Re: GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

2012-06-26 Thread Niels Möller
Richard Guenther rguent...@suse.de writes: It was just a suggestion - if I'd implement it I would default to the compiler driver for the assembler call but allow a different assembler to be specified via configure. That approach makes some sense to me. Assuming such a configure option makes

Re: GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

2012-06-24 Thread bodrato
Ciao, Il Gio, 21 Giugno 2012 6:47 pm, bodr...@mail.dm.unipi.it ha scritto: Il Mer, 20 Giugno 2012 9:54 pm, Niels Möller ha scritto: For configure.in hacks, after a quick look I think what needs to be done is to have --disable-assembly disable any setting of HAVE_CALLING_CONVENTIONS (config.h

Re: GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

2012-06-21 Thread bodrato
Ciao, Il Mer, 20 Giugno 2012 9:54 pm, Niels Möller ha scritto: I think it makes sense to have --disable-assembly disable *all* use of assembly source files. Agreed. For configure.in hacks, after a quick look I think what needs to be done is to have --disable-assembly disable any setting of

Re: GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

2012-06-20 Thread bodrato
This discussion begun on gmp-bugs, was moved to gmp-discuss... I reply to gmp-devel to avoid confusions for the users, because the problem I've found arise with the current head repository only. Vincent Lefevre vinc...@vinc17.net writes: Not to remove it, but to make it *optional*, i.e. to

Re: GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

2012-06-20 Thread Torbjorn Granlund
bodr...@mail.dm.unipi.it writes: tmp-amd64call.s:120: error: unknown opcode 'movq' ... Even with the --disable-assembly option given to configure, make check is asking to the compiler to assemble a .s file. It didn't happen with the --host=none option given to GMP-5.0 . If you have

Re: GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

2012-06-20 Thread Vincent Lefevre
On 2012-06-20 21:26:18 +0200, Torbjorn Granlund wrote: Let's first decide if it is worth spending time on. Just because somebody writes a compiler doesn't mean taat we need to feed GMP to it... Does anybody really need to use tcc for compiling GMP? Perhaps because of dependency. But I'm

Re: GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

2012-06-20 Thread Niels Möller
Torbjorn Granlund t...@gmplib.org writes: Let's first decide if it is worth spending time on. Just because somebody writes a compiler doesn't mean taat we need to feed GMP to it... I think it makes sense to have --disable-assembly disable *all* use of assembly source files. For configure.in