NetBSD Problem Report #47401

From www@NetBSD.org  Fri Jan  4 01:07:07 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 38A3263E615
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  4 Jan 2013 01:07:07 +0000 (UTC)
Message-Id: <20130104010706.A497363E615@www.NetBSD.org>
Date: Fri,  4 Jan 2013 01:07:06 +0000 (UTC)
From: pooka@iki.fi
Reply-To: pooka@iki.fi
To: gnats-bugs@NetBSD.org
Subject: armv6 targeted build uses instructions not available on armv6
X-Send-Pr-Version: www-1.0

>Number:         47401
>Category:       port-arm
>Synopsis:       armv6 targeted build uses instructions not available on armv6
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 04 01:10:00 +0000 2013
>Closed-Date:    Fri Sep 30 08:26:20 +0000 2016
>Last-Modified:  Fri Sep 30 08:26:20 +0000 2016
>Originator:     Antti Kantee
>Release:        
>Organization:
>Environment:
>Description:
When compiling src/common/lib/libc/arch/arm/atomic with -march=armv6 (gas 2.23), you get e.g. following errors:

atomic_add_64.S:42: Error: selected processor does not support ARM mode `ldrexd r0,[r4]'
atomic_add_64.S:45: Error: selected processor does not support ARM mode `strexd ip,r2,[r4]'
atomic_add_64.S:65: Error: selected processor does not support ARM mode `ldrexd r0,[r4]'
atomic_add_64.S:68: Error: selected processor does not support ARM mode `strexd ip,r0,[r4]'

Additionally, at least arm/include/lock.h has uses _ARM_ARCH_6_ in a similar inaccurate fashion with ldrexb.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Matt Thomas <matt@3am-software.com>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: port-arm/47401: armv6 targeted build uses instructions not available on armv6
Date: Thu, 3 Jan 2013 20:52:54 -0800

 On Jan 3, 2013, at 5:10 PM, pooka@iki.fi wrote:

 >> Number:         47401
 >> Category:       port-arm
 >> Synopsis:       armv6 targeted build uses instructions not available =
 on armv6
 >> Confidential:   no
 >> Severity:       non-critical
 >> Priority:       medium
 >> Responsible:    port-arm-maintainer
 >> State:          open
 >> Class:          sw-bug
 >> Submitter-Id:   net
 >> Arrival-Date:   Fri Jan 04 01:10:00 +0000 2013
 >> Originator:     Antti Kantee
 >> Release:       =20
 >> Organization:
 >> Environment:
 >> Description:
 > When compiling src/common/lib/libc/arch/arm/atomic with -march=3Darmv6 =
 (gas 2.23), you get e.g. following errors:
 >=20
 > atomic_add_64.S:42: Error: selected processor does not support ARM =
 mode `ldrexd r0,[r4]'
 > atomic_add_64.S:45: Error: selected processor does not support ARM =
 mode `strexd ip,r2,[r4]'
 > atomic_add_64.S:65: Error: selected processor does not support ARM =
 mode `ldrexd r0,[r4]'
 > atomic_add_64.S:68: Error: selected processor does not support ARM =
 mode `strexd ip,r0,[r4]'
 >=20
 > Additionally, at least arm/include/lock.h has uses _ARM_ARCH_6_ in a =
 similar inaccurate fashion with ldrexb.

 Note all the arm11 (36,76) supported by NetBSD support those =
 instructions.
 You need to -march=3Darmv6z to get gas to shut up.=

State-Changed-From-To: open->feedback
State-Changed-By: matt@NetBSD.org
State-Changed-When: Sat, 03 Aug 2013 21:38:40 +0000
State-Changed-Why:
ask and answered.


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 30 Sep 2016 08:26:20 +0000
State-Changed-Why:
feedback timeout


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.