* FYI: FAIL malloc/tst-malloc-too-large.c with gcc 11
@ 2020-11-30 16:40 Stefan Liebler
2020-12-01 12:25 ` Stefan Liebler
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Liebler @ 2020-11-30 16:40 UTC (permalink / raw)
To: GNU C Library
Hi,
just as information, if build with gcc 11, the testase
malloc/tst-malloc-too-large.c is failing with:
error: tst-malloc-too-large.c:97: not true: errno == ENOMEM
error: tst-malloc-too-large.c:97: not true: errno == ENOMEM
...
error: tst-malloc-too-large.c:97: not true: errno == ENOMEM
error: 65533 test failures
I've just created gcc Bug 98070 - errno is not re-evaluated after
clearing errno and calling realloc(ptr, SIZE_MAX):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98070
Bye,
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FYI: FAIL malloc/tst-malloc-too-large.c with gcc 11
2020-11-30 16:40 FYI: FAIL malloc/tst-malloc-too-large.c with gcc 11 Stefan Liebler
@ 2020-12-01 12:25 ` Stefan Liebler
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Liebler @ 2020-12-01 12:25 UTC (permalink / raw)
To: libc-alpha
On 11/30/20 5:40 PM, Stefan Liebler via Libc-alpha wrote:
> Hi,
>
> just as information, if build with gcc 11, the testase
> malloc/tst-malloc-too-large.c is failing with:
> error: tst-malloc-too-large.c:97: not true: errno == ENOMEM
> error: tst-malloc-too-large.c:97: not true: errno == ENOMEM
> ...
> error: tst-malloc-too-large.c:97: not true: errno == ENOMEM
> error: 65533 test failures
>
> I've just created gcc Bug 98070 - errno is not re-evaluated after
> clearing errno and calling realloc(ptr, SIZE_MAX):
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98070
>
> Bye,
> Stefan
>
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:57fcbe579c2f2b0919486b658a5bec8f4e1ef42b
commit r11-5598-g57fcbe579c2f2b0919486b658a5bec8f4e1ef42b
Author: Richard Biener <rguenther@suse.de>
Date: Tue Dec 1 09:19:52 2020 +0100
middle-end/98070 - fix realloc builtin fnspec
realloc clobbers errno, note that.
2020-12-01 Richard Biener <rguenther@suse.de>
PR middle-end/98070
* builtins.c (builtin_fnspec): realloc is ".Cw ".
=> malloc/tst-malloc-too-large is now passing.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-01 12:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-30 16:40 FYI: FAIL malloc/tst-malloc-too-large.c with gcc 11 Stefan Liebler
2020-12-01 12:25 ` Stefan Liebler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).