This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

v850-gcc (fatal signal 6)


if this doesn't occur in newer version, please inform me.

$ ./configure --host=i386--freebsd --target=v850
  (snip)
$ v850-gcc -v
Reading specs from /usr/local/lib/gcc-lib/v850/2.8.0/specs
gcc version 2.8.0
$ cat foo.c
foo ()
{
  extern int i; /* or, extern short i; */
  i |= 1 << 8;  /* or, ^= pow_of_2, &= ~pow_of_2 {256 <= pow_of_2} */
}
$ v850-gcc -O1 -S foo.c
v850-gcc: Internal compiler error: program cc1 got fatal signal 6

                    ===

instruction "set1/not1/clr1" takes only 3bit immediate operand. when
pow_of_2 < 256, v850-gcc currently produces like:

	movhi	hi (_i), r0, r10
	set1	7, lo (_i) [r10]

how about this? (for pow_of_2 == 256):

	movhi	hi (_i+1), r0, r10
	set1	0, lo (_i+1) [r10]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]