This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error message unrecognized opcode 'addl' in gcc-4.1.0 powerpc-eabi
- From: Ian Lance Taylor <iant at google dot com>
- To: "Jeffi Edward.J" <j dot jeffi at yahoo dot co dot in>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 16 Nov 2009 16:01:05 -0800
- Subject: Re: Error message unrecognized opcode 'addl' in gcc-4.1.0 powerpc-eabi
- References: <26321412.post@talk.nabble.com>
"Jeffi Edward.J" <j.jeffi@yahoo.co.in> writes:
> I'm using gcc-4.1.0 powerpc-eabi cross compiler.
>
> While compiling an application, the following error messages were issued
>>From the assembler.
>
> /tmp/ccQ2aTtY.s:100:Error: Unrecognized opcode 'addl'
> /tmp/ccQ2aTtY.s:110:Error: Unrecognized opcode 'adcl'
> ....
>
> I checked the PowerPC instruction set manual and I couldn't find out 'addl',
> 'adcl' instructions.
>
> Does gcc generate wrong assembly code? Is this a bug in 4.1.0? What can be
> the cause?
Those look like x86 instructions. Are you sure you have a
powerpc-eabi cross-compiler?
Ian