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]

Re: [PATCH] [COMMITTED] Fix bootstrap on powerpc-apple-darwin


Ian,

thanks, this brings darwin6.8 further.

Ian Lance Taylor wrote:

ret = mmap_result == (void *) MAP_FAILED;

+      /* Sanity check for broken MAP_FIXED.  */
+      if (ret && mmap_result != addr)
+	abort ();
+    }

Could anyone please explain me this a bit more.


This sanity check I don't understand.

This check aborts if ret == 1 because mmap_result = 0xffffffff and address != 1, it also aborts if ret == 0 because mmap_result is something and address != 0.

Maybe it's too late but I spent quite a while and I don't get this routine into my understanding. I'd be happy if someone could explain me.

Thanks
Andreas


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