diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-16 21:41:10 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-16 21:41:10 +0000 |
commit | b9a7cc698921e2a5cee2afd48b6556af5f7fbf1f (patch) | |
tree | 5aa9e7cef82d21751e0893c56bdaeadef5722525 /gcc/mips-tdump.c | |
parent | 5ffca67a18abd443db0424475a141aa1ec601450 (diff) | |
download | gcc-b9a7cc698921e2a5cee2afd48b6556af5f7fbf1f.tar.gz |
cp:
* cp/decl.c, cp/pt.c, cp/search.c, cp/tree.c: Don't use the PTR
macro.
gcc:
* bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
function.c, gcc.c, genoutput.c, gensupport.c, global.c,
haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
the PTR macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68043 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tdump.c')
-rw-r--r-- | gcc/mips-tdump.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/mips-tdump.c b/gcc/mips-tdump.c index 44486b4e500..2296a8a748c 100644 --- a/gcc/mips-tdump.c +++ b/gcc/mips-tdump.c @@ -234,7 +234,7 @@ ulong *rfile_desc; /* relative file tables */ PDR *proc_desc; /* procedure tables */ /* Forward reference for functions. */ -static PTR read_seek PARAMS ((PTR, size_t, off_t, const char *)); +static void *read_seek PARAMS ((void *, size_t, off_t, const char *)); static void read_tfile PARAMS ((void)); static void print_global_hdr PARAMS ((struct filehdr *)); static void print_sym_hdr PARAMS ((HDRR *)); @@ -271,9 +271,9 @@ static const struct option options[] = /* Read some bytes at a specified location, and return a pointer. */ -static PTR +static void * read_seek (ptr, size, offset, context) - PTR ptr; /* pointer to buffer or NULL */ + void *ptr; /* pointer to buffer or NULL */ size_t size; /* # bytes to read */ off_t offset; /* offset to read at */ const char *context; /* context for error message */ @@ -1349,12 +1349,12 @@ read_tfile () short magic; off_t sym_hdr_offset = 0; - (void) read_seek ((PTR) &magic, sizeof (magic), (off_t) 0, "Magic number"); + (void) read_seek (&magic, sizeof (magic), (off_t) 0, "Magic number"); if (!tfile) { /* Print out the global header, since this is not a T-file. */ - (void) read_seek ((PTR) &global_hdr, sizeof (global_hdr), (off_t) 0, + (void) read_seek (&global_hdr, sizeof (global_hdr), (off_t) 0, "Global file header"); print_global_hdr (&global_hdr); @@ -1368,7 +1368,7 @@ read_tfile () sym_hdr_offset = global_hdr.f_symptr; } - (void) read_seek ((PTR) &sym_hdr, + (void) read_seek (&sym_hdr, sizeof (sym_hdr), sym_hdr_offset, "Symbolic header"); |