[oe] gcc ICE (gcc 4.1.2, nios2), test program included

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Mon Mar 7 10:24:06 UTC 2011


2011/3/3 Phil Blundell <philb at gnu.org>:
> On Thu, 2011-03-03 at 19:48 +0100, Frans Meulenbroeks wrote:
>> Dear all,
>>
>> I've bumped onto an issue that I seem unable to resolv.
>> With gcc 4.1.2, target nios2, I get an ICE when compiling dbus:
>>
>> [...]
>>
>> Anyone an idea on how to tackle this.
>
> I'm not sure there's much to say about this really.  An ICE is, more or
> less by definition, a compiler bug in gcc, and the version you're
> testing with is quite old now (by normal standards if not in the Altera
> world).  So your options would seem to be:
>
> a) find a newer gcc and hope that it fixes the bug;

Unfortunately there isn't one.
>
> b) debug the failure for yourself (see the gcc manual and/or mailing
> list for advice); or

Guess that is the road to travel. Maybe someone has some pointers on
how to get started with this.
>
> c) persuade someone else, presumably one of the nios2 gcc maintainers,
> to debug it.

Unfortunately such maintainer does not seem to exist.
The nios2 port was done by windriver. I'm speculating that this was
contract work for Altera. There does not seem to be an active
maintainer. That is probably also why there is no newer version.

I've encountered the error in dbus; there I managed to develop a patch
to dbus that avoids triggering the bug.
However with bitbake -k console-image I see the problem also occurs in
jasper and tiff:

jpc_t1cod.c: In function 'jpc_getmagctxno':
jpc_t1cod.c:447: error: Attempt to delete prologue/epilogue insn:
(insn 76 75 77 0 jpc_t1cod.c:436 (set (reg:SI 22 r22)
        (plus:SI (reg:SI 22 r22)
            (reg:SI 8 r8))) -1 (nil)
    (nil))
jpc_t1cod.c:447: internal compiler error: in propagate_one_insn, at flow.c:1699


tif_ojpeg.c:2078: error: Attempt to delete prologue/epilogue insn:
(insn 171 170 172 8 tif_ojpeg.c:2078 (set:SI (reg:SI 22 r22)
        (mem/c:SI (plus:SI (reg/f:SI 27 sp)
                (const_int 8 [0x8])) [110 S4 A32])) -1 (nil)
    (nil))
tif_ojpeg.c:2078: internal compiler error: in propagate_one_insn, at flow.c:1699

Frans.




More information about the Openembedded-devel mailing list