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]

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



After the following patch: 2004-03-10 Richard Henderson <rth@redhat.com> * config/rs6000/host-darwin.c darwin_rs6000_gt_pch_get_address): Update for changed definition. (darwin_rs6000_gt_pch_use_address): Likewise.

Powerpc-apple-darwin would not bootstrap anymore, this patch fixes that.

Commited as obvious after a bootstrap on powerpc-apple-darwin.

Thanks,
Andrew Pinski


ChangeLog:


	* config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
	Use ret instead of result. Use addr instead of base.


Index: host-darwin.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/rs6000/host-darwin.c,v retrieving revision 1.8 diff -u -p -r1.8 host-darwin.c --- host-darwin.c 11 Mar 2004 03:19:03 -0000 1.8 +++ host-darwin.c 12 Mar 2004 19:21:38 -0000 @@ -170,8 +170,8 @@ darwin_rs6000_gt_pch_use_address (void * || sizeof (pch_address_space) % pagesize != 0) abort ();

- result = (addr == pch_address_space && sz <= sizeof (pch_address_space));
- if (! result)
+ ret = (addr == pch_address_space && sz <= sizeof (pch_address_space));
+ if (! ret)
sz = 0;


/* Round the size to a whole page size. Normally this is a no-op. */
@@ -188,7 +188,7 @@ darwin_rs6000_gt_pch_use_address (void *
ret = mmap_result == (void *) MAP_FAILED;


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

return ret;


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