internal error -- needed new GOT register during reload phase

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Wed Apr 8 23:33:00 GMT 1998


Hi,

this error seems to be the basic reason behind an abort()/"insn doesn't
satisfy it's constraints" in reload1.c for the original file. I stripped
down the .i file til I got to it. The original file is tclXmath.c from
tcltk-8.0. It aborts on powerpc-unknown-linux-gnu if compiled with "gcc -O2
-fpic", -O0 or removing -fpic solves this.
It happens for all egcs-versions I used and I just retested it with CVS-egcs.

Bye,
Franz.


tclXmath-min.i: In function `test':
tclXmath-min.i:14: internal error -- needed new GOT register during reload
phase to load:
(symbol_ref/u:SI ("*.LC0"))
gcc: Internal compiler error: program cc1 got fatal signal 6

int
test(void)
{
    double value, maxValue = - (__extension__	((union { unsigned __l
__attribute__((__mode__(__DI__))); double __d; }) { __l:
0x7ff0000000000000ULL }).__d)  ;
    int idx, maxIdx = 1;

    for (idx = 1; idx < 22; idx++) {
        if (value > maxValue) {
            maxValue = value;
            maxIdx = idx;
        }
    }
    return 0 ;
}





More information about the Gcc-bugs mailing list