Reload problem, advice required

Jon Beniston jon@beniston.com
Sat Sep 11 03:49:00 GMT 2004


Hi,

I'm am seeing the following compiler abort on a new port I'm working on:

libstdc++-v3/include/bits/istream.tcc:124: internal compiler error: in relo
ad_combine_note_use, at postreload.c:1082

Which I believe is occuring because a pseduo register is detected in an
instruction after global register allocation.

The offending instruction in the .lreg dump is:

(insn 4 875 932 0
/home/Jon/build-gcc2/excess-elf/mall-enabled/libstdc++-v3/include/bits/istre
am.tcc:865 (parallel [
            (set (mem/s:HI (reg/f:HI 229) [52 __pos+0 S2 A16])
                (reg:HI 5 r5))
            (set (mem/s:HI (plus:HI (reg/f:HI 229)
                        (const_int 2 [0x2])) [52 __pos+2 S2 A16])
                (reg:HI 6 r6))
            (set (mem/s:HI (plus:HI (reg/f:HI 229)
                        (const_int 4 [0x4])) [52 __pos+4 S2 A16])
                (reg:HI 7 r7))
        ]) 26 {*sm} (insn_list 875 (nil))
    (expr_list:REG_DEAD (reg:HI 7 r7)
        (expr_list:REG_DEAD (reg:HI 6 r6)
            (expr_list:REG_DEAD (reg:HI 5 r5)
                (nil)))))

And in the .greg dump:

(insn 4 936 932 0
/home/Jon/build-gcc2/excess-elf/mall-enabled/libstdc++-v3/include/bits/istre
am.tcc:865 (parallel [
            (set (mem/s:HI (reg:HI 1 ra) [52 __pos+0 S2 A16])
                (reg:HI 5 r5))
            (set (mem/s:HI (plus:HI (reg/f:HI 229)
                        (const_int 2 [0x2])) [52 __pos+2 S2 A16])
                (reg:HI 6 r6))
            (set (mem/s:HI (plus:HI (reg/f:HI 229)
                        (const_int 4 [0x4])) [52 __pos+4 S2 A16])
                (reg:HI 7 r7))
        ]) 26 {*sm} (insn_list 875 (nil))
    (nil))

I am assuming that the pseudo register references (reg/f:HI 229) shouldn't
appear in the .greg dump. Is that correct? If so, what is likely to be the
cause of this problem? Is it likely to be something I have done wrong in my
machine specific code, or is it a more general problem? Any pointers on
where I should be looking would be greatly appreciated.

I working off the 3.4.2 sources.

Cheers,
JonB



More information about the Gcc mailing list