This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fwd: mips 16 bit compilation lead to crash
- From: keshav yadav <keshav dot yadav2005 at gmail dot com>
- To: David Daney <ddaney at caviumnetworks dot com>, binutils at sourceware dot org, gcc-help at gcc dot gnu dot org, iant at google dot com
- Date: Tue, 18 Aug 2009 09:39:22 +0530
- Subject: Re: Fwd: mips 16 bit compilation lead to crash
- References: <9651e57b0908160650s2b81e48bod8fc1d50c19c8e5b@mail.gmail.com> <9651e57b0908160721g4d9893bfrcd1afcb66f3b28d1@mail.gmail.com> <4A89830B.40904@caviumnetworks.com>
Hi ,
I am using binutils GNU ld (GNU Binutils) 2.17.50.20070611.
and gcc version is 4.2.0.
and my test program is
#include<stdio.h>
int bar(int c,int d)
{
return c+d;
}
int foo(int c,int d)
{
c+=3;
d-=2;
return bar(c,d);
}
int main()
{
printf("HEllo World!!!!");
foo(1,2);
return 0;
}
On Mon, Aug 17, 2009 at 9:49 PM, David Daney<ddaney@caviumnetworks.com> wrote:
> The proper forum for this question is binutils@sourceware.org (now CCed).
>
> keshav yadav wrote:
>>
>> ---------- Forwarded message ----------
>> From: keshav yadav <keshav.yadav2005@gmail.com>
>> Date: Sun, Aug 16, 2009 at 7:20 PM
>> Subject: mips 16 bit compilation lead to crash
>> To: gcc-help@gcc.gnu.org, gcc-help@gnu.org
>>
>>
>> Hi all,
>>
>> I want to use MIPS 16 bit instruction similar to ARM thumb mode. But i
>> am getting error
>>
>> #mips-gcc ? -mips16 ? -o test.o test.c
>>
>> /tmp/ccJFGlL0.s: Assembler messages:
>> /tmp/ccJFGlL0.s:17: Internal error!
>> Assertion failure in macro_build_lui at ../../gas/config/tc-mips.c line
>> 3142
>>
>> 1. Is there problem in toolchain i have made ?
>> 2. is i am giving 16 bit option to gcc correctly.
>>
>
> Your report is lacking important information:
>
> 1) Which versions of the tools are you using.
>
> 2) A self contained test case. ?(The contents of test.c).
>
> Because of those deficiencies, it is impossible to answer your questions.
>
> David Daney
>