host-darwin.c (darwin_rs6000_gt_pch_use_address): Use ret instead of result.
authorAndrew Pinski <apinski@apple.com>
Fri, 12 Mar 2004 19:45:49 +0000 (19:45 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 12 Mar 2004 19:45:49 +0000 (11:45 -0800)
2003-03-12  Andrew Pinski  <apinski@apple.com>

        * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
        Use ret instead of result. Use addr instead of base.

From-SVN: r79404

gcc/ChangeLog
gcc/config/rs6000/host-darwin.c

index 412149742d8a5c77a8270f7f5f482f99a01fec17..ba634503f892fd62104aff65550a0c5c98473cc4 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-12  Andrew Pinski  <apinski@apple.com>
+
+       * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
+       Use ret instead of result. Use addr instead of base.
+
 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
 
        * doc/install.texi (*-ibm-aix*): Document assembler and achiver
index 1699d48856046cd319fa45698d149b3f0a368aeb..05fd871786c6a3f88c3bb5fd1c6849b6fcaa410c 100644 (file)
@@ -170,8 +170,8 @@ darwin_rs6000_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off)
       || sizeof (pch_address_space) % pagesize != 0)
     abort ();
   
-  result = (addr == pch_address_space && sz <= sizeof (pch_address_space));
-  if (! result)
+  ret = (addr == pch_address_space && sz <= sizeof (pch_address_space));
+  if (! ret)
     sz = 0;
 
   /* Round the size to a whole page size.  Normally this is a no-op.  */
@@ -188,7 +188,7 @@ darwin_rs6000_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off)
   ret = mmap_result == (void *) MAP_FAILED;
 
   /* Sanity check for broken MAP_FIXED.  */
-  if (ret && mmap_result != base)
+  if (ret && mmap_result != addr)
     abort ();
 
   return ret;