]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* 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 b8a8813c785cd178f29ab12587563b1bbbe6aa72..2af6cb30ab86814454260d1463181cbfd42901dd 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 d652530b6a19de112b5fef4b10a886e3c01b7018..f1dcc42df735593151bca57c2ac7697a78937e36 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;