NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-arm/39153: gcc can't generate code for arm thumb instruction set
>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: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 16 07:00:00 +0000 2008
>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:
Home |
Main Index |
Thread Index |
Old Index