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
F121994555: D26774.id78199.diff
Tue, Jul 1, 7:04 AM
Unknown Object (File)
Sun, Jun 29, 4:00 AM
Unknown Object (File)
Fri, Jun 27, 5:26 PM
Unknown Object (File)
Wed, Jun 25, 9:23 AM
Unknown Object (File)
Wed, Jun 25, 2:36 AM
Unknown Object (File)
May 29 2025, 11:49 AM
Unknown Object (File)
May 23 2025, 2:56 AM
Unknown Object (File)
May 21 2025, 10:19 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
Lint Not Applicable
Unit
Tests Not Applicable

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