Hi, this patch series fixes two bugs, or rather unhandled errors, in the callback_only attribute handler. The first is a missing check for variadic functions, the second one is a missing early return statement. Both patches also add testcases for their issues.
Bootstrapped and regtested in tandem on x86_64-linux without regressions. OK for master? Best regards, Josef Josef Melcr (2): Reject variadic functions in callback_only attribute handler Return early if callback_only is not used on a function gcc/c-family/c-attribs.cc | 22 +++++++++++++++++++++- gcc/doc/extend.texi | 3 ++- gcc/testsuite/gcc.dg/attr-callback.c | 21 +++++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) -- 2.55.0
