On 11/02/18 08:15 PM, Vincent Lefevre wrote:
On 2018-02-11 10:40:55 +0100, Torbjorn Granlund wrote:
Dennis Clarke writes:
repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit
Our nightly builds get a few of those too, as warnings. I've decided I
Vincent Lefevre writes:
> So, in case of 32-bit x86 mode in the compiler, shouldn't $host be
> seen as matching X86_PATTERN instead of X86_64_PATTERN?
Interestingly, it seems config.guess checks $CC (but not $CFLAGS):
$ ./config.guess
haswell-pc-linux-gnu
$ CC='gcc
On 2018-02-12 12:52:49 +0100, Torbjorn Granlund wrote:
> It is less common that people set CC/CFLAGS to bad values (or at least
> we don't hear about that very often). I don't think we should try to
> accomodate that since it would result in lots of fragile complexity.
> (If you don't agree,
t...@gmplib.org (Torbjörn Granlund) writes:
> It is not easy to find anything better than what we have today.
>
> The current strategy was chosen to work best for most users, and work
> best here means to give optimal GMP performance. If the optimal "ABI"
> does not work, the next best "ABI" is
Vincent Lefevre writes:
So, if I understand correctly, this means that if the user chooses
to set -m32 in CFLAGS, he might have to try different ABI values
before finding one that works (because -m32 does not necessarily
imply 32-bit limbs). This is not nice.
It is
On 2018-02-12 10:31:23 +0100, Torbjorn Granlund wrote:
> Vincent Lefevre writes:
>
> As written above, this is for C compilers. But GMP also has assembler
> code. So, you need to provide an option that will affect the assembler
> code. This is what ABI is for.
>
>
Vincent Lefevre writes:
> That said, perhaps GMP might be improved to detect the ABI by a
> simple parsing of $CFLAGS when provided by the user (in case values
> like -m32 or -m64 are standard).
In Nettle, I try to detect the ABI used by the configured C compiler,
with a
Vincent Lefevre writes:
As written above, this is for C compilers. But GMP also has assembler
code. So, you need to provide an option that will affect the assembler
code. This is what ABI is for.
That said, perhaps GMP might be improved to detect the ABI by a
On 2018-02-11 19:21:33 -0500, Jeffrey Walton wrote:
> That's not true. In fact, Stallman specifically tells the project to
> adds the flags it needs. Below is from Section 7.2.3 of
> https://www.gnu.org/prep/standards/standards.html. This would fix the
> ARM compile problem, too:
>
>
>
> If