* vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.

From-SVN: r84398
This commit is contained in:
Zack Weinberg 2004-07-09 20:58:00 +00:00
parent a578b09197
commit dae1dd2e3c
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2004-07-09 Zack Weinberg <zack@codesourcery.com>
* vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/16459
@ -61,7 +65,7 @@
2004-07-09 Richard Earnshaw <rearnsha@arm.com>
PR target/12133
* arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
* arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
and DImode to use +/-4k offset.
2004-07-09 Richard Henderson <rth@redhat.com>

View File

@ -82,7 +82,7 @@ vec_o_reserve (void *vec, int reserve, size_t vec_offset, size_t elt_size
void
vec_assert_fail (const char *op, const char *struct_name,
const char *file, size_t line, const char *function)
const char *file, unsigned int line, const char *function)
{
internal_error ("vector %s %s domain error, in %s at %s:%u",
struct_name, op, function, trim_filename (file), line);

View File

@ -251,7 +251,7 @@ extern void *vec_o_reserve (void *, int, size_t, size_t MEM_STAT_DECL);
#if ENABLE_CHECKING
extern void vec_assert_fail (const char *, const char *,
const char *, size_t, const char *)
const char *, unsigned int, const char *)
ATTRIBUTE_NORETURN;
#define VEC_ASSERT_FAIL(OP,VEC) \
vec_assert_fail (OP,#VEC,__FILE__,__LINE__,__FUNCTION__)