aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-05-04 19:14:05 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2016-05-04 19:14:05 +0000
commit2a746f231df769a64796698b25a855d994815ecc (patch)
treef3f7fe50cfc9c0f23075c3e40d5cd02b5f9c00d6 /gcc
parent33fd7785cf867493ccf2339c4196fdb5c04c15c5 (diff)
downloadgcc-2a746f231df769a64796698b25a855d994815ecc.zip
gcc-2a746f231df769a64796698b25a855d994815ecc.tar.gz
gcc-2a746f231df769a64796698b25a855d994815ecc.tar.bz2
s-osinte-gnu.ads (Get_Page_Size): Return int and use getpagesize instead of __getpagesize.
* s-osinte-gnu.ads (Get_Page_Size): Return int and use getpagesize instead of __getpagesize. From-SVN: r235896
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/s-osinte-gnu.ads7
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index a48c2f5..6069635 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * s-osinte-gnu.ads (Get_Page_Size): Return int and use getpagesize
+ instead of __getpagesize.
+
2016-05-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
diff --git a/gcc/ada/s-osinte-gnu.ads b/gcc/ada/s-osinte-gnu.ads
index 6cac9b9..183c5b8 100644
--- a/gcc/ada/s-osinte-gnu.ads
+++ b/gcc/ada/s-osinte-gnu.ads
@@ -344,10 +344,9 @@ package System.OS_Interface is
-- returns the stack base of the specified thread. Only call this function
-- when Stack_Base_Available is True.
- -- From: /usr/include/i386-gnu/bits/shm.h __getpagesize or getpagesize??
- function Get_Page_Size return size_t;
- function Get_Page_Size return Address;
- pragma Import (C, Get_Page_Size, "__getpagesize");
+ -- From: /usr/include/i386-gnu/bits/shm.h
+ function Get_Page_Size return int;
+ pragma Import (C, Get_Page_Size, "getpagesize");
-- Returns the size of a page
-- From /usr/include/i386-gnu/bits/mman.h