NetBSD Problem Report #39153
From www@NetBSD.org Wed Jul 16 06:56:21 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id AA46A63B9AA
for <gnats-bugs@gnats.netbsd.org>; Wed, 16 Jul 2008 06:56:21 +0000 (UTC)
Message-Id: <20080716065621.5209463B89E@narn.NetBSD.org>
Date: Wed, 16 Jul 2008 06:56:21 +0000 (UTC)
From: ilya.dogolazky@gmail.com
Reply-To: ilya.dogolazky@gmail.com
To: gnats-bugs@NetBSD.org
Subject: gcc can't generate code for arm thumb instruction set
X-Send-Pr-Version: www-1.0
>Number: 39153
>Category: port-arm
>Synopsis: gcc can't generate code for arm thumb instruction set
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-arm-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 16 07:00:00 +0000 2008
>Closed-Date: Sat Dec 19 02:39:19 +0000 2015
>Last-Modified: Sat Dec 19 02:39:19 +0000 2015
>Originator: Ilya Dogolazky
>Release: 4.99.66
>Organization:
Teleca Finland Oy
>Environment:
NetBSD 4.99.66 NetBSD 4.99.66 (TISDP2420) #109: Mon Jul 14 20:34:51 EEST 2008 ilya@ildo:/home/ilya/2008-06-30/netbsd-dev/sys/arch/evbarm/compile/TISDP2420 evbarm
>Description:
I'm trying to compile a simple C++ program for Thumb instruction set with the flag -fPIC (the compiler version is 4.1.3 20080202). An internal compiler error in thumb_find_work_register, at config/arm/arm.c:3348 occurs.
>How-To-Repeat:
1. Create a file named error.cpp as follows:
#include <string>
class A
{
char x1;
std::string x2, x3;
public:
A(char, const std::string &, const std::string &);
};
A::A(char xx1, const std::string &xx2, const std::string &xx3) : x1(xx1), x2(xx2), x3(xx3)
{ }
2. Compile it with the command
g++ -fPIC -mthumb -mthumb-interwork -c ./error.cpp
>Fix:
>Release-Note:
>Audit-Trail:
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc:
Subject: re: port-arm/39153
Date: Sun, 30 Oct 2011 21:24:11 +1100
FWIW, GCC 4.5.3 on my shark is able to compile this file without error.
.mrg.
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-arm/39153
Date: Sat, 5 Nov 2011 12:45:48 +0000
On Sun, Oct 30, 2011 at 10:25:01AM +0000, matthew green wrote:
> FWIW, GCC 4.5.3 on my shark is able to compile this file without error.
I have marked this (in my private metadata which gnats can't store) as
affecting only -4 and -5.
--
David A. Holland
dholland@netbsd.org
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 19 Dec 2015 02:39:19 +0000
State-Changed-Why:
-5 is now EOL
>Unformatted:
(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.