[llvm-dev] llvm.trap() from -O1 optimization

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 14 06:25:32 PST 2016


On 13 December 2016 at 21:31, Ashay Rane via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
> target triple = "armv7-unknown-linux-gnu"

You probably also want the triple "armv7-unknown-linux-gnueabihf".
Straight away that would make your arm_aapcs_vfpcc annotations
redundant because that's the default.

Also, plain "gnu" is a really weird old ABI that LLVM doesn't actually
support so you could easily get strange behaviour from the backend not
dealing with it properly. And even if the backend gets it right
somehow, your surrounding libraries are almost certainly not "gnu".

Cheers.

Tim.


More information about the llvm-dev mailing list