Skip to content

clang ignores non-weak function definition #73100

Open
@zlojvavan

Description

@zlojvavan

please see and compare output of https://godbolt.org/z/bahPa15fx between gcc and clang (both from trunk)

for me clang doesn't override default tsan weak function definition __tsan_default_suppressions() with mine one, defined in header file

what is more puzzling on my ubuntu 23 I can use workaround, define __tsan_default_suppressions() not in some header file but in one of the source files and then it correctly uses that definition (as if STRONG_IN_HEADER wasn't defined in godbolt sample), but on godbolt I wasn't able to make it use my redefinition even with this workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions