aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnarl
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2024-08-07 13:35:17 +0100
committerIain Sandoe <iain@sandoe.co.uk>2024-08-08 09:24:56 +0100
commit6db7150947996f89a4a62f4579f8b817b0ca1986 (patch)
tree2ddf578739cb3384e5d8e6b3b693c23e7ad1d949 /gcc/ada/libgnarl
parent82ed4d514329ed56077efda59a397784615e9c93 (diff)
downloadgcc-6db7150947996f89a4a62f4579f8b817b0ca1986.zip
gcc-6db7150947996f89a4a62f4579f8b817b0ca1986.tar.gz
gcc-6db7150947996f89a4a62f4579f8b817b0ca1986.tar.bz2
Ada, libgnarl: Fix s-taprop__posix.adb compilation.
Bootstrap on Darwin, and likely any other targets using the posix implementation of s-taprop was broken by commits between r15-2743 and r15-2747: s-taprop.adb:297:15: error: "size_t" is not visible s-taprop.adb:297:15: error: multiple use clauses cause hiding s-taprop.adb:297:15: error: hidden declaration at s-osinte.ads:58 s-taprop.adb:297:15: error: hidden declaration at i-c.ads:9 This seems to be caused by an omitted change to use Interfaces.C.size_t instead of just size_t. Fixed thus. gcc/ada/ChangeLog: * libgnarl/s-taprop__posix.adb (Stack_Guard): Use Interfaces.C.size_t for the type of Page_Size. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'gcc/ada/libgnarl')
-rw-r--r--gcc/ada/libgnarl/s-taprop__posix.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/libgnarl/s-taprop__posix.adb b/gcc/ada/libgnarl/s-taprop__posix.adb
index 3d76679..5f6a4d6 100644
--- a/gcc/ada/libgnarl/s-taprop__posix.adb
+++ b/gcc/ada/libgnarl/s-taprop__posix.adb
@@ -294,7 +294,7 @@ package body System.Task_Primitives.Operations is
Res :=
mprotect
(Stack_Base - (Stack_Base mod Page_Size) + Page_Size,
- size_t (Page_Size),
+ Interfaces.C.size_t (Page_Size),
prot => (if On then PROT_ON else PROT_OFF));
pragma Assert (Res = 0);
end if;