Commit 4319ac92 by Andrew Pinski Committed by Andrew Pinski

host-darwin.c (darwin_rs6000_gt_pch_use_address): Use ret instead of result.

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
parent bb674cef
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> 2004-03-12 David Edelsohn <edelsohn@gnu.org>
* doc/install.texi (*-ibm-aix*): Document assembler and achiver * doc/install.texi (*-ibm-aix*): Document assembler and achiver
......
...@@ -170,8 +170,8 @@ darwin_rs6000_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off) ...@@ -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) || sizeof (pch_address_space) % pagesize != 0)
abort (); abort ();
result = (addr == pch_address_space && sz <= sizeof (pch_address_space)); ret = (addr == pch_address_space && sz <= sizeof (pch_address_space));
if (! result) if (! ret)
sz = 0; sz = 0;
/* Round the size to a whole page size. Normally this is a no-op. */ /* 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) ...@@ -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; ret = mmap_result == (void *) MAP_FAILED;
/* Sanity check for broken MAP_FIXED. */ /* Sanity check for broken MAP_FIXED. */
if (ret && mmap_result != base) if (ret && mmap_result != addr)
abort (); abort ();
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment