Subject: Re: Can't make a kernel
To: Yukawa Tatsuaki <yukawa@sm.sony.co.jp>
From: SAITOH Masanobu <masanobu@iij.ad.jp>
List: port-sh3
Date: 05/14/2000 11:23:31
 > sh-evbsh3-netbsdcoff-gcc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wno-parentheses -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DSH7750 -DSH4 -DSH4_PCMCIA -DEVBSH4 -DMMEYE -DINITTODR_ALWAYS_USE_RTC -DBRAINS -DUSE_RTCCLK -DSYNC_CLOCK_TO_RTC -DHZ="0x40" -DPMAP_NEW -DMAXUSERS=16 -D_KERNEL  -Dsh3  -c ../../../../ufs/ffs/ffs_alloc.c
 > ../../../../ufs/ffs/ffs_alloc.c: In function `ffs_blkfree':
 > ../../../../ufs/ffs/ffs_alloc.c:1413: fixed or forbidden register 18 (t) was spilled for class T_REGS.
 > This may be due to a compiler bug or to impossible asm
 > statements or clauses.
 > *** Error code 1

It's a compiler bug.

 Compile the file with -O0

----------------------------------------------------------
		SAITOH Masanobu (masanobu@iij.ad.jp
				  msaitoh@netbsd.org)