From db4eb7c2449a9c0cf1653be5c714b6fda36c9387 Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 9 Apr 2004 00:36:51 +0000 Subject: [PATCH] * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address): Return 1 if file was successfully mapped. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80537 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/host-darwin.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index faf7f1c9c20..782543623ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-04-08 Ian Lance Taylor + + * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address): + Return 1 if file was successfully mapped. + 2004-04-08 Geoffrey Keating PR pch/13419 diff --git a/gcc/config/rs6000/host-darwin.c b/gcc/config/rs6000/host-darwin.c index 9f47cac937d..d04270c3675 100644 --- a/gcc/config/rs6000/host-darwin.c +++ b/gcc/config/rs6000/host-darwin.c @@ -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 (); } -- 2.11.4.GIT