From owner-freebsd-arm@freebsd.org Thu Oct 22 09:47:32 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BAE43A1CB17 for ; Thu, 22 Oct 2015 09:47:32 +0000 (UTC) (envelope-from mattia.rossi.mailinglists@gmail.com) Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 38AD3125D for ; Thu, 22 Oct 2015 09:47:32 +0000 (UTC) (envelope-from mattia.rossi.mailinglists@gmail.com) Received: by lffz202 with SMTP id z202so41441648lff.3 for ; Thu, 22 Oct 2015 02:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=ub+GfmeRlbYQbYpp02irQx4mQcwXHbDK06YIdfPvbq0=; b=TH0JCOoGf9ovY7yUK586xMfHu/ZE6cfbo0CwITEFb0WDwcOmySdLRK/QwRLpshRbol oSk4nOCIOYe++ynIWHW+6pVZ9i8cn2YhapAgye4s+76inoOm7gYp9aWSwKKQ6BQF56xS 7tVeILvy5tCN65AGRV+3n3a5rxLzt2rm21hCVSIa2DXs7I6f70uxiSrF0pQ9h9OtjTTx UBsNx+iW6FgcPmMNz4R9jzNTAwkVWBHwlJ1i00bnVk1zI3nC1igZNy9d+CXMB7fCtQLv t7Azti6MNA+jpvrEb5TOPzrASv5Si8g9qFgFNfDYtSmokwNAcHDUbUj8XS1+QoOkh/ZC Xd0g== X-Received: by 10.112.166.102 with SMTP id zf6mr8008559lbb.124.1445507250301; Thu, 22 Oct 2015 02:47:30 -0700 (PDT) Received: from ?IPv6:2001:1620:ff0:c51:d995:61c4:e64:8acc? ([2001:1620:ff0:c51:d995:61c4:e64:8acc]) by smtp.googlemail.com with ESMTPSA id rf8sm2201104lbb.20.2015.10.22.02.47.29 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Oct 2015 02:47:29 -0700 (PDT) Subject: Re: CC core dumping with CLANG 3.7 on armv5 - DREAMPLUG To: Konstantin Belousov References: <5626144F.9060003@gmail.com> <5628873F.7050509@gmail.com> <20151022081551.GB2257@kib.kiev.ua> Cc: freebsd-arm From: Mattia Rossi Message-ID: <5628B0B0.8040804@gmail.com> Date: Thu, 22 Oct 2015 11:47:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151022081551.GB2257@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2015 09:47:32 -0000 > You may disassemble the instruction at the address, and print the content > of registers: > (gdb) disassemble *0x01eb0868-8,0x01eb0868+8 > (gdb) info registers > > If the cause of your issue is weird codegeneration on ARMv5, it might be > seen from the data above. On the other hand, this would not help if the > issue is algorithmic. I am afraid there is not much more to suggest. (gdb) disassemble *0x01eb0868-8,0x01eb0868+8 No function contains specified address. (gdb) info registers r0 0x1e53b 124219 r1 0x6a 106 r2 0xc3c3c3c6 -1010580538 r3 0x5a5a5a59 1515870809 r4 0x3 3 r5 0x1fd9f83 33398659 r6 0x1e53b 124219 r7 0x4019 16409 r8 0x22a1708c 581005452 r9 0xffffffff -1 r10 0x5a5a5a5a 1515870810 r11 0xbfbfeb70 -1077941392 r12 0x1 1 sp 0xbfbfeb48 -1077941432 lr 0x8f5c 36700 pc 0x1eb0868 32180328 fps 0x0 0 cpsr 0x60000010 1610612752 (gdb) Doesn't tell me anything :-( > > Is ARMv5 considered active platform for clang anyway ? In http://www.llvm.org/svn/llvm-project/llvm/trunk/lib/Target/ARM/ARM.td I found this: def HasV5TOps : SubtargetFeature<"v5t", "HasV5TOps", "true", "Support ARM v5T instructions", [HasV4TOps]>; Which to me means that it still supports armv5 ...