diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-12 19:45:49 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-12 19:45:49 +0000 |
commit | eb28db74e9941ebac4e668e47785416a88b37bd3 (patch) | |
tree | 80e0b381c3852f4b92797811234307e6b8b364d7 /gcc/config/rs6000 | |
parent | 3759b77b5c874da51c9ddad70bdcccadac2fd37b (diff) | |
download | gcc-eb28db74e9941ebac4e668e47785416a88b37bd3.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79404 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r-- | gcc/config/rs6000/host-darwin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/rs6000/host-darwin.c b/gcc/config/rs6000/host-darwin.c index 1699d488560..05fd871786c 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; |