From 9d99ca5b1edb6322b3e7429cc17ff26e972677b4 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Fri, 6 Jul 2001 18:12:11 +0000 Subject: [PATCH] * varray.c (varray_check_failed): Use internal_error. From-SVN: r43815 --- gcc/ChangeLog | 4 ++++ gcc/varray.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c134b5b6bda..3e8e968e6d0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-07-06 Zack Weinberg + + * varray.c (varray_check_failed): Use internal_error. + 2001-07-05 Andrew Haley * Makefile.in (LIB2_DIVMOD_FUNCS): New. diff --git a/gcc/varray.c b/gcc/varray.c index 7f75bf2f7c3..7cf42f0b911 100644 --- a/gcc/varray.c +++ b/gcc/varray.c @@ -84,9 +84,9 @@ varray_check_failed (va, n, file, line, function) int line; const char *function; { - error("Virtual array %s[%lu]: element %lu out of bounds", - va->name, (unsigned long) va->num_elements, (unsigned long) n); - fancy_abort (file, line, function); + internal_error ("Virtual array %s[%lu]: element %lu out of bounds in %s, at %s:%d", + va->name, (unsigned long) va->num_elements, (unsigned long) n, + function, trim_filename (file), line); } #endif -- 2.30.2