Skip to content

Fix __always_inline__ functions always having a strong definition [GH #175] - #231

Closed
mborland wants to merge 3 commits into
edgcpp:mainfrom
mborland:inline
Closed

mborland wants to merge 3 commits into
edgcpp:mainfrom
mborland:inline

Conversation

@mborland

@mborland mborland commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

If had a function marked as [[gnu::always_inline]] such as std::move from libstdc++15, the definition was always strong instead of __weak__ which led to link errors. Now we mark the function as __weak__.

Closes: #175

@mborland mborland added bug Something isn't working back end - c labels Oct 7, 2026
@mborland mborland changed the title Fix __always_inline__ functions always having a strong definition Fix __always_inline__ functions always having a strong definition [GH #175] Oct 7, 2026
@daveedvdv-nvidia

Copy link
Copy Markdown

Merged as 773d310

@mborland
mborland deleted the inline branch October 7, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

back end - c bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

always_inline inline functions are strong definitions in every object file

2 participants