[llvm-dev] Simple program fails to compile depending on target os

Moritz Angermann via llvm-dev llvm-dev at lists.llvm.org
Sun Jul 3 19:51:11 PDT 2016


Thanks!

I also found test/CodeGen/ARM/ghc-tcreturn-lowered.ll, which tests only for thumbv7-eabi,
so, i tried a few more variations:

[x] arm64-apple-ios
[x] arm64-apple-ios7.0.0
[x] arm64-apple-darwin
[x] armv7-apple
[x] thumbv7-apple
[x] thumbv7-apple-darwin
[x] i386-apple-ios
[x] i386-apple-darwin

[f] thumbv7-apple-ios
[f] thumbv7-apple-ios7.0.0
[f] armv7-apple-ios

I’ve also just build a HEAD version (LLVM version 3.9.0svn), and the code in fact *does*
compile with 3.9.0svn.

Cheers,
 Moritz

> On Jul 4, 2016, at 10:19 AM, Tim Northover <t.p.northover at gmail.com> wrote:
> 
> On 3 July 2016 at 18:26, Moritz Angermann via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> Any hints as to why this code only compiles for darwin and not for ios, would be greatly appreciated.
> 
> I saw the same thing on a checkout from a few months back, but I then
> updated and ToT seems to get it right (well, slightly different
> CodeGen because the iOS linker only started supporting tail calls at
> 5.0 or something so -darwin doesn't use them, but both compiled to
> correct code). There's certainly been some churn in this bit of code
> recently, so the bug was probably fixed incidentally as part of that.
> 
> Tim.



More information about the llvm-dev mailing list