[coldfire-gnu-discuss] Problems with -mcpu=assembler switch

Carlos O'Donell carlos at codesourcery.com
Wed Aug 16 17:34:38 UTC 2006


On Wed, Aug 16, 2006 at 05:58:36PM +0100, Paul McConkey wrote:
> I have noticed a slight problem with the m68k-elf-as assembler in your
> current release of the ColdFire toolchain.
>  
> I'm building for an mcf5282 target so I have set -mcpu=5282 and just
> get: 
> 
> "error: bad value (5282) for -mcpu= switch"
> 
> although 5282 is listed as a valid CPU target by -help and
> --target-help.
> 
> The 528x switch seems ok.

Hi Paul!

Thanks for your interested in our Sourcery G++ Coldfire toolchains.

1. Are you running the assembler directly or through GCC?
2. Which version of the toolchain are you using? (m68k-elf-gcc --version)

The compiler does not accept -mcpu=5282, it only accepts 528x.
The assembler accepts -mcpu=5282.

Ufnortuantely the output of "m68k-elf-gcc --target-help" is sometimes
confusing since it includes help information for the assembler.

The 5281, 5282, 5283 are the same as 528x. I will file an internal issue
so that the compiler and assembler have similar options.

Cheers,
Carlos.
-- 
Carlos O'Donell
CodeSourcery
carlos at codesourcery.com
(650) 331-3385 x716



More information about the coldfire-gnu-discuss mailing list