diff options
author | joel <joel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-21 20:52:46 +0000 |
---|---|---|
committer | joel <joel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-21 20:52:46 +0000 |
commit | e04d486d43ea085957e95ed08d13df11da23b41c (patch) | |
tree | b501c5f109156a9372386d741b6417b91b50c596 | |
parent | 8501184cda3dc1a5208e26cf6b7e1ca9377d530c (diff) | |
download | gcc-e04d486d43ea085957e95ed08d13df11da23b41c.tar.gz |
2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
Bind to getpagesize() in RTEMS 4.10 and newer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151946 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/s-osinte-rtems.adb | 12 | ||||
-rw-r--r-- | gcc/ada/s-osinte-rtems.ads | 4 |
3 files changed, 8 insertions, 13 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index b67bf86c0d6..dddef52d6f4 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com> + + * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0. + Bind to getpagesize() in RTEMS 4.10 and newer. + 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * env.c [__alpha__ && __osf__] (_BSD): Define. diff --git a/gcc/ada/s-osinte-rtems.adb b/gcc/ada/s-osinte-rtems.adb index 1e4efbc351d..ab98de558fd 100644 --- a/gcc/ada/s-osinte-rtems.adb +++ b/gcc/ada/s-osinte-rtems.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1991-2008 Florida State University -- +-- Copyright (C) 1991-2009 Florida State University -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -125,16 +125,6 @@ package body System.OS_Interface is return Null_Address; end Get_Stack_Base; - function Get_Page_Size return size_t is - begin - return 0; - end Get_Page_Size; - - function Get_Page_Size return Address is - begin - return 0; - end Get_Page_Size; - function sigaltstack (ss : not null access stack_t; oss : access stack_t) return int is diff --git a/gcc/ada/s-osinte-rtems.ads b/gcc/ada/s-osinte-rtems.ads index e1b0261d6d1..5e3d9192014 100644 --- a/gcc/ada/s-osinte-rtems.ads +++ b/gcc/ada/s-osinte-rtems.ads @@ -296,8 +296,8 @@ package System.OS_Interface is function Get_Page_Size return size_t; function Get_Page_Size return Address; - -- returns the size of a page, or 0 if this is not relevant on this - -- target (which is the case for RTEMS) + pragma Import (C, Get_Page_Size, "getpagesize"); + -- Returns the size of a page PROT_ON : constant := 0; PROT_OFF : constant := 0; |