From: Rainer Orth Date: Fri, 1 Aug 2003 23:00:24 +0000 (+0000) Subject: * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *. X-Git-Tag: releases/gcc-3.4.0~4442 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c76becbdce5b2e59546bd576dc72326801d1bda1;p=thirdparty%2Fgcc.git * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *. From-SVN: r70077 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d00a0bb0283b..c0846f744f39 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-08-01 Rainer Orth + + * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *. + 2003-08-01 Richard Kenner * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode, diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 284811878dee..6441710e689c 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -588,7 +588,7 @@ gt_pch_restore (FILE *f) fileno (f), mmi.offset); /* The file might not be mmap-able. */ - needs_read = mmap_result == MAP_FAILED; + needs_read = mmap_result == (void *) MAP_FAILED; /* Sanity check for broken MAP_FIXED. */ if (! needs_read && mmap_result != mmi.preferred_base)