free login no deposit bonus_betfair sports tips_Welfare offer bwin poker

Sat, 22 Dec 2018 13:06:48 -0800

control: clone 916779 -1
control: reassign -1 gcc-8
control: retitle -1 gcc-8: --fno-math-errno causes GCC to consider that malloc 
does not set errno
control: submitted -1

On 2018-12-22 13:37, Aurelien Jarno wrote:
> This is not what happens, errno is not set to ENOMEM in strerror_() but
> in strerror(). The problem is that the malloc implementation when run
> under QEMU sets errno to ENOMEM, despite successfully allocating the
> memory. errno is supposed to be saved around the malloc call:
>   saved_errno = errno;
>   if (buf == NULL) 
>     buf = malloc (1024);
>   __set_errno (saved_errno); 
> That said, when compiled with -fno-math-errno, GCC optimizes out
> saving and restoring errno around the malloc call. I am not sure if this
> is a GCC bug or a bug in the GCC documentation.

This has been confirmed to be a GCC bug, here is the upstream bug

free online betting

As this bug is likely going to be workarounded in glibc, I am cloning
this bug and reassigning the clone to the gcc-8 package. I'll close the
glibc one when adding the workaround or a bumped build-dependency on


Aurelien Jarno                          GPG: 4096R/1DDD8C9B       

Attachment: signature.asc
Description: PGP signature

Reply via email to