<div dir="ltr"><div>It would seem that the default in the back end is "v9" for 64-bit and "v8" otherwise as per: <a href="https://llvm.org/doxygen/SparcSubtarget_8cpp_source.html#l00028">https://llvm.org/doxygen/SparcSubtarget_8cpp_source.html#l00028</a></div><div><br></div><div>In clang, it looks like tools::getCPUName() (<a href="https://clang.llvm.org/doxygen/namespaceclang_1_1driver_1_1tools.html#a4aa5f09d301ea25099c8badc35a4e09d">https://clang.llvm.org/doxygen/namespaceclang_1_1driver_1_1tools.html#a4aa5f09d301ea25099c8badc35a4e09d</a>) returns "v9" for Solaris and an empty string otherwise. Presumably if you set it to what it should be set for, you will get what you want.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 21, 2022 at 3:33 AM John Paul Adrian Glaubitz via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
<br>
On 1/19/22 00:16, John Paul Adrian Glaubitz wrote:<br>
> I'm trying to figure out how to raise the default baseline for the 32-bit SPARC<br>
> target on Linux. Currently, this target defaults to the SPARCv7 architecture which<br>
> lacks support for atomic instructions which is why the build of compiler-rt fails<br>
> with, see [1]:<br>
<br>
Can anyone recommend a place where I might find an answer?<br>
<br>
The discourse channel for the related topics code generation [1] and sanitizers [2]<br>
don't seem to get much attention either.<br>
<br>
Thanks,<br>
Adrian<br>
<br>
> [1] <a href="https://llvm.discourse.group/c/code-generation/51" rel="noreferrer" target="_blank">https://llvm.discourse.group/c/code-generation/51</a><br>
> [2] <a href="https://llvm.discourse.group/c/runtimes/sanitizers/12" rel="noreferrer" target="_blank">https://llvm.discourse.group/c/runtimes/sanitizers/12</a><br>
<br>
-- <br>
 .''`.  John Paul Adrian Glaubitz<br>
: :' :  Debian Developer - <a href="mailto:glaubitz@debian.org" target="_blank">glaubitz@debian.org</a><br>
`. `'   Freie Universitaet Berlin - <a href="mailto:glaubitz@physik.fu-berlin.de" target="_blank">glaubitz@physik.fu-berlin.de</a><br>
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>