diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-03-10 15:36:25 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-03-10 10:36:25 -0500 |
commit | ea23d5400fa97028252affe38bac9ee6cb861f8f (patch) | |
tree | 41bc16434291d8097a58999ccd1fba1a61771a80 /gcc/mips-tdump.c | |
parent | 0f7fa3d01f482328963c1bbfcd1ab64a42531c42 (diff) | |
download | gcc-ea23d5400fa97028252affe38bac9ee6cb861f8f.zip gcc-ea23d5400fa97028252affe38bac9ee6cb861f8f.tar.gz gcc-ea23d5400fa97028252affe38bac9ee6cb861f8f.tar.bz2 |
mips-tdump.c (read_seek): Call xmalloc, not malloc.
* mips-tdump.c (read_seek): Call xmalloc, not malloc.
* mips-tfile.c: Don't #undef rindex; not used.
From-SVN: r40366
Diffstat (limited to 'gcc/mips-tdump.c')
-rw-r--r-- | gcc/mips-tdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/mips-tdump.c b/gcc/mips-tdump.c index 613606f..d56b6d6 100644 --- a/gcc/mips-tdump.c +++ b/gcc/mips-tdump.c @@ -291,7 +291,7 @@ read_seek (ptr, size, offset, context) if (size == 0) /* nothing to read */ return ptr; - if ((ptr == (PTR_T) 0 && (ptr = malloc (size)) == (PTR_T) 0) + if ((ptr == (PTR_T) 0 && (ptr = xmalloc (size)) == (PTR_T) 0) || (tfile_offset != offset && lseek (tfile_fd, offset, 0) == -1) || (read_size = read (tfile_fd, ptr, size)) < 0) { |