host-darwin.c (darwin_rs6000_gt_pch_use_address): Return 1 if file was successfully mapped.

* config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
	Return 1 if file was successfully mapped.

From-SVN: r80537
This commit is contained in:
Ian Lance Taylor 2004-04-09 00:36:51 +00:00 committed by Ian Lance Taylor
parent f701326e71
commit febc53656a
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
* config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
Return 1 if file was successfully mapped.
2004-04-08 Geoffrey Keating <geoffk@apple.com>
PR pch/13419

View File

@ -187,10 +187,10 @@ darwin_rs6000_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off)
fd, off);
/* The file might not be mmap-able. */
ret = mmap_result == (void *) MAP_FAILED;
ret = mmap_result != (void *) MAP_FAILED;
/* Sanity check for broken MAP_FIXED. */
if (!ret && mmap_result != addr)
if (ret && mmap_result != addr)
abort ();
}