Error message unrecognized opcode 'addl' in gcc-4.1.0 powerpc-eabi

View: New views
4 Messages — Rating Filter:   Alert me  

Error message unrecognized opcode 'addl' in gcc-4.1.0 powerpc-eabi

by Jeffi Edward.J :: Rate this Message:

| View Threaded | Show Only this Message


Hi,

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?

br,
Jeff

Re: Error message unrecognized opcode 'addl' in gcc-4.1.0 powerpc-eabi

by Ian Lance Taylor-3 :: Rate this Message:

| View Threaded | Show Only this Message

"Jeffi Edward.J" <j.jeffi@...> 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

Re: Error message unrecognized opcode 'addl' in gcc-4.1.0 powerpc-eabi

by Jeffi Edward.J :: Rate this Message:

| View Threaded | Show Only this Message


Yes. Its powerpc cross tool.
I traced out the problem in the application. These instructions are inline asm from freebsd source with GNU C extension (__GNUC__) conditional compilation flag. I could proceed by undefining the flag for that file. Sorry!

Thanks.

Ian Lance Taylor-3 wrote:
"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

Re: Error message unrecognized opcode 'addl' in gcc-4.1.0 powerpc-eabi

by Philipp Thomas-3 :: Rate this Message:

| View Threaded | Show Only this Message

On Wed, 18 Nov 2009 22:14:23 -0800 (PST), you wrote:

>These instructions are inline asm from freebsd source with GNU C
>extension (__GNUC__) conditional compilation flag. I could
>proceed by undefining the flag for that file.

The right way would be to conditionalize the code on an architecture
specific definition like __i386__. IMO you should try to inform the
authors/maintainers of that code to fix it.

Philipp