aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2024-01-24 07:44:23 -0800
committerAndi Kleen <ak@gcc.gnu.org>2024-07-19 23:28:58 -0700
commit7db47f7b915c5f5d645fa536547e26b92290afe3 (patch)
treeec93fee82d935cdedc107b9fad9792a9d28a0cf6 /gcc/doc
parent59dd1d7ab21ad9a7ebf641ec9aeea609c003ad2f (diff)
downloadgcc-7db47f7b915c5f5d645fa536547e26b92290afe3.zip
gcc-7db47f7b915c5f5d645fa536547e26b92290afe3.tar.gz
gcc-7db47f7b915c5f5d645fa536547e26b92290afe3.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