Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
e540d8d1
Commit
e540d8d1
authored
Apr 08, 2008
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(malloc32, realloc32): New functions.
From-SVN: r134074
parent
d5316f68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
gcc/ada/s-crtl.ads
+12
-1
No files found.
gcc/ada/s-crtl.ads
View file @
e540d8d1
...
...
@@ -6,7 +6,7 @@
--
--
--
S
p
e
c
--
--
--
--
Copyright
(
C
)
2003
-
200
7
,
Free
Software
Foundation
,
Inc
.
--
--
Copyright
(
C
)
2003
-
200
8
,
Free
Software
Foundation
,
Inc
.
--
--
--
--
GNAT
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
-
--
...
...
@@ -133,6 +133,11 @@ package System.CRTL is
function
malloc
(
Size
:
size_t
)
return
System
.
Address
;
pragma
Import
(
C
,
malloc
,
"malloc"
);
function
malloc32
(
Size
:
size_t
)
return
System
.
Address
;
pragma
Import
(
C
,
malloc32
,
"malloc"
);
--
An
uncalled
alias
for
malloc
except
on
64
bit
systems
needing
to
--
allocate
32
bit
memory
.
procedure
memcpy
(
S1
:
System
.
Address
;
S2
:
System
.
Address
;
N
:
size_t
);
pragma
Import
(
C
,
memcpy
,
"memcpy"
);
...
...
@@ -152,6 +157,12 @@ package System.CRTL is
(
Ptr
:
System
.
Address
;
Size
:
size_t
)
return
System
.
Address
;
pragma
Import
(
C
,
realloc
,
"realloc"
);
function
realloc32
(
Ptr
:
System
.
Address
;
Size
:
size_t
)
return
System
.
Address
;
pragma
Import
(
C
,
realloc32
,
"realloc"
);
--
An
uncalled
alias
for
realloc
except
on
64
bit
systems
needing
to
--
allocate
32
bit
memory
.
procedure
rewind
(
stream
:
FILEs
);
pragma
Import
(
C
,
rewind
,
"rewind"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment