[Bug middle-end/60092] posix_memalign not recognized to derive alias and alignment info

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 6 14:08:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60092

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #9)
> Ok, my manpage says
> 
> RETURN VALUE
>        aligned_alloc(), memalign(), valloc(), and pvalloc() return  a  
> pointer
>        to the allocated memory, or NULL if the request fails.
> 
>        posix_memalign()  returns  zero  on success, or one of the error 
> values
>        listed in the next section on failure.  Note that errno is not set.
> 
> so that must be incorrect.
> 
> If the value of errno is undefined after posix_memalign that doesn't
> help us as we then still cannot CSE.

Linux man pages are often incorrect, better look at the 3p ones ;).



More information about the Gcc-bugs mailing list