diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/rs6000/host-darwin.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4121497..ba63450 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/rs6000/host-darwin.c b/gcc/config/rs6000/host-darwin.c index 1699d48..05fd871 100644 --- a/gcc/config/rs6000/host-darwin.c +++ b/gcc/config/rs6000/host-darwin.c @@ -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; |
