This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Internal error in size_binop
- To: gcc at gcc dot gnu dot org
- Subject: Internal error in size_binop
- From: Lars Brinkhoff <lars at nocrew dot org>
- Date: 11 Jan 2001 12:50:12 +0100
- Organization: nocrew
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?