This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
cppfiles tweek
- To: gcc-patches at gcc dot gnu dot org
- Subject: cppfiles tweek
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sat, 16 Sep 2000 10:49:45 -0700
We're using caddr_t, but not making any effort to get it defined.
Seems easier to use PTR instead.
r~
* cppiles.c (purge_cache): Use PTR not caddr_t.
Index: cppfiles.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cppfiles.c,v
retrieving revision 1.78
diff -c -p -d -r1.78 cppfiles.c
*** cppfiles.c 2000/09/12 03:42:29 1.78
--- cppfiles.c 2000/09/16 17:47:35
*************** purge_cache (inc)
*** 364,370 ****
if (inc->buffer)
{
if (inc->mapped)
! munmap ((caddr_t) inc->buffer, inc->st.st_size);
else
free ((PTR) inc->buffer);
inc->buffer = NULL;
--- 364,370 ----
if (inc->buffer)
{
if (inc->mapped)
! munmap ((PTR) inc->buffer, inc->st.st_size);
else
free ((PTR) inc->buffer);
inc->buffer = NULL;