[PATCH] Add basic m68k support to crosstool-ng

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Tue Feb 16 18:15:00 GMT 2010


Hello Remy, All!

On Sunday 07 February 2010 22:17:13 Remy Bohmer wrote:
> > From the gcc man page, it seems you can also pass -march and -mtune.
> > Did you exclude those on purpose, or is it a oversight?
> Looking deeper into this it seems that:
> * if GCC is compiled with --with-arch=m68k (ARCH_ARCH=m68k) then the
> build of newlib eventually fails because its compilation passes
> -march=m68k to GCC, which is an illegal value for GCC itself.
> * If GCC is compiled with 'ARCH_ARCH=cpu32', which is valid for -march
> for GCC as listed on the man-pages, then the compilation of GCC fails
> since it does not like this option to be passed through --with-arch.
> * --with-tune is not supported either, although --with-cpu works properly.

Hmmm. Lemme see...

OK, gcc is clearly at fault here (IMHO). So it's the responsibility of the
gcc build script to fix those.

Eg.:
- CT_ARCH_ARCH can take any value acceptable by -march
- the build script mangles that value to build a value suitable for
  --with-arch

That's the idea... But I'm no m68k expert, here...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list