This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

3.4 PATCH: Fix Tru64 UNIX V4.0F bootstrap failure in ggc-common.c


Current mainline just failed to bootstrap on Tru64 UNIX V4.0F:

/vol/gnu/src/gcc/gcc-dist/gcc/ggc-common.c: In function `gt_pch_restore':
/vol/gnu/src/gcc/gcc-dist/gcc/ggc-common.c:591: warning: comparison between pointer and integer

MAP_FAILED is (-1L) on this platform, so we need a void * cast here.

Commited as obvious.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Sat Aug  2 00:53:49 2003  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

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

Index: gcc/ggc-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ggc-common.c,v
retrieving revision 1.73
diff -u -p -r1.73 ggc-common.c
--- gcc/ggc-common.c	29 Jul 2003 23:36:46 -0000	1.73
+++ gcc/ggc-common.c	1 Aug 2003 22:56:49 -0000
@@ -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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]