https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
--- Comment #9 from Zack Weinberg ---
... whoops, hit send a little too early. AFAICT, the relevant code is
call_may_clobber_ref_p_1 in tree-ssa-alias.c; I would say that the uses of
flag_errno_math under the cases BUILT_IN_MALLOC, ALIGNED_ALLOC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
Zack Weinberg changed:
What|Removed |Added
CC||rguenther at suse dot de
--- Comment #8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
--- Comment #7 from Aurelien Jarno ---
(In reply to Zack Weinberg from comment #5)
> The C standard doesn't say malloc _will_ set errno on failure, but it also
Well at least POSIX says:
Otherwise, it shall return a null pointer and set errno to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
Florian Weimer changed:
What|Removed |Added
CC||fw at gcc dot gnu.org
--- Comment #6 fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
Zack Weinberg changed:
What|Removed |Added
CC||zackw at panix dot com
--- Comment #5 fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
--- Comment #4 from Andrew Pinski ---
PR 42944
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
--- Comment #3 from Andrew Pinski ---
(In reply to Aurelien Jarno from comment #2)
> (In reply to Andrew Pinski from comment #1)
> > IIRC malloc setting errno also non standard.
>
> According to POSIX:
>
> The malloc() function shall fail i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
--- Comment #2 from Aurelien Jarno ---
(In reply to Andrew Pinski from comment #1)
> IIRC malloc setting errno also non standard.
According to POSIX:
The malloc() function shall fail if:
[ENOMEM]
[CX] [Option Start] Insufficien
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
--- Comment #1 from Andrew Pinski ---
IIRC malloc setting errno also non standard.