Re: building cross-compiler for m68hc11/m68hc12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



29.2.2012 12:40, Kai Ruottu kirjoitti:

Ok, I tried your task... First with gcc-4.3.6 (the latest gcc-4.3),
it crashed in libgcc build. The earlier gcc-4.2.4 crashed with the
following :

-DMISSING_SYSCALL_NAMES -fno-builtin -O2 -Os -m68hc11 -c
../../../../../../newlib/libc/stdio/vfwscanf.c -o lib_a-vfwscanf.o
../../../../../../newlib/libc/stdio/vfwscanf.c: In function
'__svfwscanf_r':
../../../../../../newlib/libc/stdio/vfwscanf.c:1454: error: insn does
not satisfy its constraints:
(insn 5773 5771 5774 507 (set (reg:HI 2 y)
(plus:HI (reg:HI 0 x)
(const_int 21 [0x15]))) 52 {*addhi3} (nil)
(nil))
../../../../../../newlib/libc/stdio/vfwscanf.c:1454: internal compiler
error: in reload_cse_simplify_operands, at postreload.c:392

My binutils for 'm68hc11-elf' were quite old :

[root@localhost build]# /usr/local/m68hc11-elf/bin/ld -V
GNU ld version 030318 20030318

I maybe will still try gcc-4.1.2 and newlib-1.18.0 (or some much older)
after updating those in 2003 installed binutils...

Updated to binutils-2.14.90.0.8 and tried the gcc-4.1.2 sources...
The result was a similar crash during newlib build :

../../../../../../newlib/libc/stdio/vfwscanf.c: In function '__svfwscanf_r':
../../../../../../newlib/libc/stdio/vfwscanf.c:1454: error: insn does not satisfy its constraints:
(insn 5720 5718 5721 500 (set (reg:HI 2 y)
        (plus:HI (reg:HI 0 x)
            (const_int 21 [0x15]))) 52 {*addhi3} (nil)
    (nil))
../../../../../../newlib/libc/stdio/vfwscanf.c:1454: internal compiler error: in reload_cse_simplify_operands, at postreload.c:393

Ok, if one doesn't need a standard C library like newlib, the GCC (and
libgcc with it) builds should succeed up to gcc-4.2.4, in gcc-4.3.x the
libgcc build may crash...


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux