Page MenuHomeFreeBSD

[llvm] Use 32 bit atomic on freebsd mips
ClosedPublic

Authored by adrian on Oct 13 2020, 10:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 29, 3:45 PM
Unknown Object (File)
Mon, Sep 21, 7:26 AM
Unknown Object (File)
Mon, Sep 21, 6:57 AM
Unknown Object (File)
Mon, Sep 21, 6:54 AM
Unknown Object (File)
Fri, Sep 18, 7:01 AM
Unknown Object (File)
Fri, Sep 18, 5:47 AM
Unknown Object (File)
Sat, Sep 12, 6:47 PM
Unknown Object (File)
Thu, Sep 10, 3:07 PM
Subscribers

Details

Summary

gcc for mips32 doesn't include libatomic and doesn't generate
atomic sequences; so this just fails to link.

Instead, just use 32 bit for mips32/mips64.

(I haven't found a nice way to detect 32 or 64 bit mips here
without other header pollution, but it should be fine for freebsd/mips.)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 34149
Build 31307: arc lint + arc unit

Event Timeline

I think this is fine for now. Upstream will want to centralize the define somewhere in __config, but we can take that discussion there.

This revision is now accepted and ready to land.Oct 16 2020, 6:58 PM