Another GCC question (probably easy to answer)

Chris Johns chrisj at rtems.org
Thu Nov 25 21:41:36 UTC 2004


Etienne Fortin wrote:
> While looking at the machine code created for my library, I discovered
> that m68k-rtems-gcc produce the "bsrl" instruction for branching to a
> subroutine. This instruction is supported only on V4 Coldfire processors
> (the Longword mode [L] is only supported on the V4, the other modes are
> supported on the V2 and V3). This is strange since I use -m5200 to force
> using V2 Coldfire instructions only.
> 
> Is this a bug in GCC? Or did I forgot, for the x time, a flag or option
> while invoking GCC? I also noticed that compiling RTEMS always produce
> "jsr" instruction instead of "bsrl". So there must be an option
> somewhere to control that...
> 

If RTEMS is being built correctly then I suspect you have a file not 
compiled with -m5200. More detail is needed to provide more specific help.

-- 
  Chris Johns



More information about the users mailing list