Skip to content

Commit 02cfa75

Browse files
committed
Bump the default target CPU for i386-freebsd to i686
Summary: Similar to what we have done downstream, some time ago: https://svnweb.freebsd.org/changeset/base/353936 This followed some discussions on the freebsd-arch mailing lists, and most people agreed that it was a better default, and also it worked around several issues where clang generated libcalls to 64 bit atomic primitives, instead of using cmpxchg8b. Reviewers: emaste, brooks, rsmith Reviewed By: emaste Subscribers: arichardson, krytarowski, jfb, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83645
1 parent 0a01fc9 commit 02cfa75

File tree

1 file changed

+1
-0
lines changed
  • clang/lib/Driver/ToolChains/Arch

1 file changed

+1
-0
lines changed

clang/lib/Driver/ToolChains/Arch/X86.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ const char *x86::getX86TargetCPU(const ArgList &Args,
9494

9595
switch (Triple.getOS()) {
9696
case llvm::Triple::FreeBSD:
97+
return "i686";
9798
case llvm::Triple::NetBSD:
9899
case llvm::Triple::OpenBSD:
99100
return "i486";

0 commit comments

Comments
 (0)