This is the mail archive of the gcc@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]

Internal error in size_binop


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?

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