[coldfire-gnu-discuss] Problem with -m5307
Nathan Sidwell
nathan at codesourcery.com
Fri Mar 2 14:30:56 UTC 2007
LE VAILLANT Guillaume wrote:
> Hi,
> {standard input}: Assembler messages:
> {standard input}:10330: Error: invalid instruction for this
> architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001,
> 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020],
> 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331,
> 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360]) -- statement
> `rorw $8,%d0' ignored
> {standard input}:10388: Error: invalid instruction for this
> architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001,
> 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020],
> 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331,
> 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360]) -- statement
> `rorw $8,%d0' ignored
These are messages that the rorw $8,%d0 instruction is not supported on the
m5307 cpu. The 5307 is an ISA A cpu. No coldfire ISA has a rotate instruction.
I'm guessing this is coming from an assembly insert -- if it isn't then it's a
compiler bug. To investigate further a testcase will be needed.
> udp.c: In function 'eXosip_read_message':
> udp.c:2153: error: impossible constraint in 'asm'
> udp.c:2175: error: impossible constraint in 'asm'
> udp.c:2189: error: impossible constraint in 'asm'
> make[6]: *** [udp.lo] Erreur 1
> make[6]: Leaving directory
> `/home/glv/Coldfire/uClinux-dist/user/linphone/linphone-1.6.0/exosip'
>
> So I tried to see if something looked wrong with these lines (2153,
> 2175, 2189), but there are only calls to FD_SET() or FD_ISSET(). There
> are many of these calls in the code and they don't seem to generate
> errors...
Those must be being implemented as macros containing an erroneous assembly insert.
to help further we're going to need
*) preprocessed source code (you can get this by adding -save-temps to the
compile line)
*) the exact command lines you're using to invoke the compiler (you're driving
the compiler via ucfront-gcc. We need the command given to m68k-uclinux-gcc.
If you're unsure how to get that then add -v to the compile line, and include
the messages you get).
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan at codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the coldfire-gnu-discuss
mailing list