* gcc.c (compare_files): Cast munmap argumento to caddr_t.
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 10 Jun 2009 12:55:34 +0000 (12:55 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 10 Jun 2009 12:55:34 +0000 (12:55 +0000)
From-SVN: r148346

gcc/ChangeLog
gcc/gcc.c

index b8a8813..2af6cb3 100644 (file)
@@ -1,3 +1,7 @@
+2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
+
+       * gcc.c (compare_files): Cast munmap argumento to caddr_t.
+
 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
 
        * doc/extend.texi: Add description for __builtin_ia32_crc32di.
index d652530..f1dcc42 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6632,7 +6632,7 @@ compare_files (char *cmpfile[])
 
     for (i = 0; i < 2; i++)
       if (map[i])
-       munmap (map[i], length[i]);
+       munmap ((caddr_t) map[i], length[i]);
 
     if (ret >= 0)
       return ret;