Internal error in size_binop
Lars Brinkhoff
lars@nocrew.org
Thu Jan 11 03:50:00 GMT 2001
I'm writing a new processor backend. When porting the backend from
GCC 2.95.2 to the current CVS tree I got this error:
kaneda$ ../gcc-cvs/gcc/cc1 add.c > add.s
add
add.c: In function `add':
add.c:1: Internal compiler error in size_binop, at fold-const.c:1913
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
kaneda$ cat add.c
int add (int a, int b) { return a + b; }
This is the code in GCC that aborts:
tree
size_binop (code, arg0, arg1)
enum tree_code code;
tree arg0, arg1;
{
tree type = TREE_TYPE (arg0);
if (TREE_CODE (type) != INTEGER_TYPE || ! TYPE_IS_SIZETYPE (type)
|| type != TREE_TYPE (arg1))
abort ();
The host is a armv4l-corel-linux-gnu with gcc 2.95.2.
Any idea what's wrong?
More information about the Gcc
mailing list