gcc 2.95.2 bug -- installation of leJOS on Unix

If your system has gcc 2.95.2, you might
see the following when you try to make
leJOS (Windows users need not worry):

> ../vmsrc/interpreter.c:206: Unable to generate
> reloads for:
> (insn 3410 3406 3412 (parallel
> (set (reg:SI 0 %eax)
> (fix:SI (fix:SF (subreg:SF (reg:SI 0
> %eax) 0))))
> (clobber (mem:HI (plus:SI (reg:SI 6
> %ebp)
> (const_int -6 [0xfffffffa
))
> 0))
> (clobber (mem:HI (plus:SI (reg:SI 6
> %ebp)
> (const_int -8 [0xfffffff8]))
> 0))
> (clobber (mem:SI (plus:SI (reg:SI 6
> %ebp)
> (const_int -4 [0xfffffffc]))
> 0))
> (clobber (scratch:HI))
> ] ) 145 {fix_truncsfsi2+1} (insn_list 3406
> (nil))
> (expr_list:REG_DEAD (reg:SI 0 %eax)
> (expr_list:REG_UNUSED (scratch:HI)
> (nil))))

Judging from

http://gcc.gnu.org/ml/gcc-bugs/1999-10n/msg00842.html

it looks like this is a known bug in gcc 2.95.2.
The workaround (besides upgrading) seems to be
to take out the -O option.

--Jose

Posted by Jose Solorzano 2012-10-16