public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [google] Disable getpagesize() for Android toolchain (issue4515131)
@ 2011-05-24 11:45 Guozhi Wei
  2011-05-24 12:37 ` Joseph S. Myers
  2011-05-24 19:23 ` Doug Kwan (關振德)
  0 siblings, 2 replies; 10+ messages in thread
From: Guozhi Wei @ 2011-05-24 11:45 UTC (permalink / raw)
  To: reply, dougkwan, jingyu, gcc-patches

Hi

This patch is for google/main.

In order to be compatible with current bionic and sysroot, we need to disable
getpagesize(). After getpagesize() in bionic is changed and ndk contains that
change, we can reenable it.

Jing can give more details about it.

This patch has been tested on arm qemu without regression.

thanks
Carrot

2011-05-24  Jing Yu  <jingyu@google.com>

	* ChangeLog.google-main: New file.
	* getpagesize.c(getpagesize): Disable it for bionic.


Index: ChangeLog.google-main
===================================================================
--- ChangeLog.google-main	(revision 0)
+++ ChangeLog.google-main	(revision 0)
@@ -0,0 +1,5 @@
+Copyright (C) 2011 Free Software Foundation, Inc.
+
+Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.
Index: getpagesize.c
===================================================================
--- getpagesize.c	(revision 174099)
+++ getpagesize.c	(working copy)
@@ -60,11 +60,13 @@ BUGS
 # endif /* PAGESIZE */
 #endif /* GNU_OUR_PAGESIZE */
 
+#if DEFAULT_LIBC != LIBC_BIONIC
 int
 getpagesize (void)
 {
   return (GNU_OUR_PAGESIZE);
 }
+#endif
 
 #else /* VMS */
 

--
This patch is available for review at http://codereview.appspot.com/4515131

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-26 23:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 11:45 [google] Disable getpagesize() for Android toolchain (issue4515131) Guozhi Wei
2011-05-24 12:37 ` Joseph S. Myers
2011-05-24 19:23 ` Doug Kwan (關振德)
2011-05-26  4:23   ` Jing Yu
2011-05-26  6:20     ` Doug Kwan (關振德)
2011-05-26  8:58       ` Jing Yu
2011-05-26 12:42     ` Joseph S. Myers
2011-05-27  4:01       ` Jing Yu
2011-05-27  4:02         ` Andrew Pinski
2011-05-26  9:56   ` Carrot Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).