Landing: 591a8ac50d8f

Project / Subsystem

gcc / gcc/pr124532

Date

2026-05-14

Author

Andi Kleen

Commit

591a8ac50d8faf914391e616faf6311f2143fde7

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/pr124532
patch_id
commit_hash
591a8ac50d8faf914391e616faf6311f2143fde7
source_type
github
headline
pr124532: Reset musttail attribute in compound statements
tldr
GCC now resets the 'musttail' attribute after a statement in a compound statement, fixing bogus errors.
author
Andi Kleen
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c
  • parser
  • attribute
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-05-14T00:00:00.000Z

A compound statement in GCC’s C parser was not resetting the musttail attribute after encountering a statement with that attribute. This oversight led to spurious errors later in the compilation process. This commit fixes the issue by ensuring that the musttail state is always reset at the end of a compound statement, preventing incorrect error reporting.