bug with egcs gcc for mips16

Rik van de Wiel wiel@natlab.research.philips.com
Tue Nov 10 03:34:00 GMT 1998


Hi,

I encountered an internal error when using options -mips16 and -Os 
together.

Info egcs compiler:
	- gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
	- configured with --host=sparc-sun-solaris2.5.1 --target=mips

Internal error occurs when calling:

	mips-gcc -mips16 -Os -c test.c

File test.c is attached to this mail message (This is the smallest
example I could construct for which this error occurs).

Error message:

internal error--insn does not satisfy its constraints:
(insn 47 18 50 (set (reg:SI 24 t8)
        (reg:SI 64 hi)) 228 {movsi_internal2+1} (nil)
    (nil))
/home/wiel/tmp/egcs-1.1b/gcc/toplev.c:1360: Internal compiler error in function fatal_insn



Best regards,

Rik
------------------------------------------+---------------------------
 Rik van de Wiel                          | Ducharme's Axiom:
 Philips Research Laboratories            |   
 Building WL1 113, Prof. Holstlaan 4,     |  If you view your problem
 5656 AA Eindhoven, The Netherlands       |  closely enough you will
 Phone:  +31-40-2744984                   |  recognize yourself as
 Fax:    +31-40-2744004                   |  part of the problem.
 E-mail: wiel@natlab.research.philips.com |
 SERI:   wiel@prles2                      |
--------------------------oOO--(")--OOo---+---------------------------
                              (o o)
                               /|\
main()
{
	int q, num;

	if (num > 1) {		
		q = num * (num / 10);
	} 
	if (q < 0) {
		q = 0;
	}
}


More information about the Gcc-bugs mailing list