aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2024-01-24 07:44:23 -0800
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:48 +0200
commitf5a65389e32b50b9069e7132498294b092c0f258 (patch)
treec3f91ccb3676cbf626d169663fef986f0c89219d /gcc/doc
parent4428d8452a382996e31bda21a49cb8175efb6644 (diff)
downloadgcc-f5a65389e32b50b9069e7132498294b092c0f258.zip
gcc-f5a65389e32b50b9069e7132498294b092c0f258.tar.gz
gcc-f5a65389e32b50b9069e7132498294b092c0f258.tar.bz2
C: Implement musttail attribute for returns
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 attr_state): Define with musttail_p. (c_parser_statement_after_labels): Handle [[musttail]]. (c_parser_std_attribute): Dito. (c_parser_handle_musttail): Dito. (c_parser_compound_statement_nostart): Dito. (c_parser_all_labels): Dito. (c_parser_statement): Dito. * c-tree.h (c_finish_return): Add musttail_p flag. * c-typeck.cc (c_finish_return): Handle musttail_p flag.
Diffstat (limited to 'gcc/doc')
0 files changed, 0 insertions, 0 deletions