[LLVMdev] Fwd: [cfe-dev] freebsd-mips64 unhandled .cpsetup

David Chisnall
Thu, 05 Feb 2015 17:32:59 -0000

Moving to llvmdev, as this is not a clang issue.

David

> Begin forwarded message:
>
> Date: 5 February 2015 17:00:34 GMT
> From: Sean Bruno <sbruno at ignoranthack.me>
> To: cfe-dev at cs.uiuc.edu
> Subject: [cfe-dev] freebsd-mips64 unhandled .cpsetup
> Reply-To: sbruno at freebsd.org
>
>
> I'm taking a journey to try and get a clang/llvm build of
freebsd-mips64
> completed by grabbing various patches and enhancements from around the
> internet and get them into one central place for review by all
> concerned.  (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197259#c11)
>
> I've snagged some patches for MIPS from cheri-bsd and some from pending
> MIPS reviews in phabricator but seem to be stuck on handling .cpsetup
> when building gnu csu bits, specifically:
>
> End of search list.
> <inline asm>:6:20: error: expected identifier
>        .cpsetup $31, $2, 1b
>                          ^
> Assertion failed: (!Name.empty() && "Normal symbols cannot be
> unnamed!"), function GetOrCreateSymbol, file
>
/home/sbruno/bsd/clang360-import/lib/clang/libllvmmc/../../../contrib/llvm/lib/MC/MCContext.cpp,
> line 101.
>
>
> Obviously, this is handled by gcc "just fine" in our case, but
I'm more
> interested in moving forward to clang.  :-)
>
> sean