diff options
author | Andi Kleen <ak@linux.intel.com> | 2024-01-24 07:44:23 -0800 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2024-07-23 13:27:12 -0700 |
commit | 78bbdbd5352df527feccf0a8c2f862f25a2e88b4 (patch) | |
tree | d4b60565bb6d2006936b30121c7f4e5aa42696bc /gcc/dwarf2codeview.h | |
parent | 2bd8177256b6d87f6e75819218cf22c2c0bfc1ac (diff) | |
download | gcc-78bbdbd5352df527feccf0a8c2f862f25a2e88b4.zip gcc-78bbdbd5352df527feccf0a8c2f862f25a2e88b4.tar.gz gcc-78bbdbd5352df527feccf0a8c2f862f25a2e88b4.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/dwarf2codeview.h')
0 files changed, 0 insertions, 0 deletions