* ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.

From-SVN: r70077
This commit is contained in:
Rainer Orth 2003-08-01 23:00:24 +00:00 committed by Rainer Orth
parent 93b8a7a857
commit c76becbdce
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,

View File

@ -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)