Re: [PATCH v9 05/10] C: Implement musttail attribute for returns

2024-07-13 Thread Andi Kleen
Here's an updated patch with your feedback addressed. Is this version ok? The common code is in the C++ patch. --- Implement a C23 clang compatible musttail attribute similar to the earlier C++ implementation in the C parser. gcc/c/ChangeLog: PR c/83324 * c-parser.cc (struct

Re: [PATCH v9 05/10] C: Implement musttail attribute for returns

2024-07-12 Thread Marek Polacek
On Mon, Jul 08, 2024 at 09:55:57AM -0700, Andi Kleen wrote: > Implement a C23 clang compatible musttail attribute similar to the earlier > C++ implementation in the C parser. Sorry that we haven't reviewed the C parts before. > > PR83324 I don't think this is going to pass the pre-commit

[PATCH v9 05/10] C: Implement musttail attribute for returns

2024-07-08 Thread Andi Kleen
Implement a C23 clang compatible musttail attribute similar to the earlier C++ implementation in the C parser. PR83324 gcc/c/ChangeLog: * c-parser.cc (struct attr_state): Define with musttail_p. (c_parser_statement_after_labels): Handle [[musttail]] (c_parser_std_