Skip to content

Do not inline functions with setjmp even if marked [[gnu::always_inline]] [GH #176] - #236

Closed
mborland wants to merge 3 commits into
edgcpp:mainfrom
mborland:fix/176
Closed

mborland wants to merge 3 commits into
edgcpp:mainfrom
mborland:fix/176

Conversation

@mborland

@mborland mborland commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Functions that are marked with [[gnu::always_inline]] currently force inlining even if the function contains setjmp, leading to compilation failure in GCC. This PR changes inlining so that if a function contains both a setjmp and [[gnu::always_inline]]it will not be inlined.

Closes: #176

@mborland mborland self-assigned this Oct 7, 2026
@mborland mborland added the bug Something isn't working label Oct 7, 2026
@mborland mborland removed their assignment Oct 7, 2026
@daveedvdv-nvidia

Copy link
Copy Markdown

Merged as 4b6c10b

@mborland
mborland deleted the fix/176 branch October 7, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

always_inline function ends up containing a setjmp from an inlined call

2 participants