host-darwin.c (darwin_rs6000_gt_pch_use_address): Return 1 if file was successfully...
authorIan Lance Taylor <ian@wasabisystems.com>
Fri, 9 Apr 2004 00:36:51 +0000 (00:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 9 Apr 2004 00:36:51 +0000 (00:36 +0000)
* config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
Return 1 if file was successfully mapped.

From-SVN: r80537

gcc/ChangeLog
gcc/config/rs6000/host-darwin.c

index faf7f1c9c200ac2ad369b2fae3a7126b8e97f2c9..782543623ce0185315db588876cae7bac4047a62 100644 (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
index 9f47cac937d450559b2a0784ef9a96e93564ff42..d04270c3675bff88f3feee61bbc9df314143ae1f 100644 (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 ();
     }