Re: [PATCH] Document that the 'access' and 'nonnull' attributes are independent

2022-03-14 Thread Martin Sebor via Gcc
On 3/9/22 14:57, David Malcolm via Gcc wrote: On Wed, 2022-03-09 at 13:30 -0800, Andrew Pinski wrote: On Wed, Mar 9, 2022 at 1:25 PM David Malcolm via Gcc wrote: We gained __attribute__ ((access, ...)) in GCC 10: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html which id

[PATCH] Document that the 'access' and 'nonnull' attributes are independent

2022-03-09 Thread David Malcolm via Gcc
to be explicit about this in the documentation, maybe something like the attached? (not yet fully tested, but seems to build) Dave > > > > (b) leave it up to the individual sites in GCC that currently make > > use > > of get_nonnull_args to add logic for handling   __attribute__ > > ((ac