Re: [PATCH] Fix posix_memalign() attributes
Corinna Vinschen <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On Oct 22 11:27, Sebastian Huber wrote: > The malloc, alloc_size and alloc_aligned attributes must be only used in > case the function returns the pointer to the allocated memory. > > See also: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87683 > > Signed-off-by: Sebastian Huber <[email protected]> > --- > newlib/libc/include/stdlib.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h > index 1972be79b..9773d3672 100644 > --- a/newlib/libc/include/stdlib.h > +++ b/newlib/libc/include/stdlib.h > @@ -282,8 +282,8 @@ int _unsetenv_r (struct _reent *, const char *__string); > #endif /* !__CYGWIN__ */ > > #if __POSIX_VISIBLE >= 200112 > -int posix_memalign (void **, size_t, size_t) __malloc_like __nonnull((1)) > - __alloc_align(2) __alloc_size(3) __result_use_check; > +int posix_memalign (void **, size_t, size_t) __nonnull((1)) > + __result_use_check; > #endif > > char * _dtoa_r (struct _reent *, double, int, int, int *, int*, char**); > -- > 2.16.4 Thanks, please push. Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlvO2FAACgkQ9TYGna5E T6A1gA//QTIfgDBsaSSaETcHSch7hGxYEk27XRauTP1NrVZNvwmtMmgNxuWi3oEF pJcNj1WENJuNLjTq5xcd/lY+hb/UWgMqMCTqa4lfCpEl7Ds0r4wG0W2WB7MnPktB ACWxd3OerJzjRxbUSccjhdyiq1MF3oeDqT9rKnF0VehPvXPDNRoK1UV43D13HR0e OBfxsywXohrs82BldguDx5TJiUsVILOSk2MCtCED9uDA28UHFFqHnBLBgJHyjN6+ ax53qPxtKR28fVP/HeitQSBCgthnU7Ec6F/6VTMerpsLAz1pHnL5qc2dhNI7tGda muHAyP7kwF1aejnyt4ooVZ0ox1e4Ahd3OuSYUTmKJMSktyPDizQERqkAaPhOhaWn bIfyYHpDWs6beOvk7XxHixwich9X9JH+f63Ty9hEwCWm6fjBlKr2+ckqYkdRFjx0 BHztIyG5XSi3vwzrVrwLCU3r1Pn9yFC2vuRQRi0OatWLt2BXqkKJq9VGamBDBpKO IISFchOvhQdbx0POPlh91xGaiGHaXUuodtBwJPGNK9YFqbXKLIISQLQ/dqAcS/kR O1PzNIxcNJBewOU3chaOjlFjgKAXMcAFPr6OatPHJnOZreN53tr9UCAtatUXA5DS CeU/7U47DMOs2mMImz6d1mEtdFTooSbn2GNZwr5HZS7+eLE1VIc= =Fibq -----END PGP SIGNATURE-----