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
This commit is contained in:
Andrew Pinski 2004-03-12 19:45:49 +00:00 committed by Andrew Pinski
parent bb674cef28
commit 4319ac925d
2 changed files with 8 additions and 3 deletions

View 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

View 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;