Re: Asserts considered harmful (or GMP spills its sensitive information)

2019-01-03 Thread Jeffrey Walton
Thanks Marco. Comments inline. On Thu, Jan 3, 2019 at 2:55 PM Marco Bodrato wrote: > > Il Lun, 31 Dicembre 2018 7:03 pm, Jeffrey Walton ha scritto: > [...skipping opinions...] > > > Here's a small example of triggering an assert using the Nettle > > library. > > T

Re: Asserts considered harmful (or GMP spills its sensitive information)

2019-01-01 Thread Jeffrey Walton
On Mon, Dec 31, 2018 at 2:16 PM Vincent Lefevre wrote: > > On 2018-12-31 13:03:27 -0500, Jeffrey Walton wrote: > > The GMP library uses asserts to crash a program at runtime when > > presented with data it did not expect. The library also ignores user > > requests to remo

Fwd: Asserts considered harmful (or GMP spills its sensitive information)

2018-12-31 Thread Jeffrey Walton
FYI... -- Forwarded message - From: Jeffrey Walton Date: Mon, Dec 31, 2018 at 1:03 PM Subject: Asserts considered harmful (or GMP spills its sensitive information) To: Cc: The GMP library uses asserts to crash a program at runtime when presented with data it did not expect

Asserts considered harmful (or GMP spills its sensitive information)

2018-12-31 Thread Jeffrey Walton
The GMP library uses asserts to crash a program at runtime when presented with data it did not expect. The library also ignores user requests to remove asserts using Posix's -DNDEBUG. Posix asserts are a deugging aide intended for developement, and using them in production software ranges from

Re: tmp-lshift.s:106: Error: selected processor does not support ARM mode `vdup.32 d6,r3'

2018-12-31 Thread Jeffrey Walton
On Mon, Dec 31, 2018 at 4:30 AM Torbjörn Granlund wrote: > > Jeffrey Walton writes: > > No, I don't override the CFLAGS. I set them like: > > CFLAGS="-g2 -O3 -DNDEBUG -march=native" ./configure ... > > You override set CFLAGS, you just set

Re: Configure fails on 32-bit platform

2018-02-11 Thread Jeffrey Walton
On Sun, Feb 11, 2018 at 4:40 PM, Niels Möller <ni...@lysator.liu.se> wrote: > Jeffrey Walton <noloa...@gmail.com> writes: > >> But please see -m32 -march=native, which was provided to configure to >> configure with. > > Setting CFLAGS simply specifies what fl

Re: ARM Cortex-A7 feature misdetection

2018-02-07 Thread Jeffrey Walton
On Tue, Feb 6, 2018 at 2:33 PM, Torbjörn Granlund <t...@gmplib.org> wrote: > Jeffrey Walton <noloa...@gmail.com> writes: > > > You should edit the .asm source files under mpn/arm/neon. Before m4 > > processing. > > There are at least two neon subdirs

Re: ARM Cortex-A7 feature misdetection

2018-02-04 Thread Jeffrey Walton
On Sun, Feb 4, 2018 at 4:16 PM, Marc Glisse <marc.gli...@inria.fr> wrote: > On Sun, 4 Feb 2018, Jeffrey Walton wrote: > >> gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. >> -DOPERATION_rshift -I/usr/local/include -DNDEBUG -march=native -fPIC >>

ARM Cortex-A7 feature misdetection

2018-02-04 Thread Jeffrey Walton
Hi Everyone, I'm working on a CubieTruck v5. It has a Cortex A7 with ARMv7-a and a NEON coprocessor. I'm building GMP 6.1.2 from sources. I performed a standard ./configure. It appears something is misdetected. Or maybe some flags are missing from source files like rshift.c. I believe the