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
2503cb81
Commit
2503cb81
authored
Jun 23, 2010
by
Olivier Hainque
Committed by
Arnaud Charlet
Jun 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
of GCC builtin imports. From-SVN: r161261
parent
d92eccc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
gcc/ada/ChangeLog
+2
-0
gcc/ada/gcc-interface/decl.c
+6
-0
No files found.
gcc/ada/ChangeLog
View file @
2503cb81
...
...
@@ -48,6 +48,8 @@
(
intrin_return_compatible_p
):
Never
warn
on
"function imported as
procedure"
.
Defer
the
void
/
void
case
to
the
common
type
compatibility
check
.
(
gnat_to_gnu_param
):
Use
void_ptr
GCC
type
for
System
.
Address
argument
of
GCC
builtin
imports
.
2010
-
06
-
23
Olivier
Hainque
<
hainque
@
adacore
.
com
>
...
...
gcc/ada/gcc-interface/decl.c
View file @
2503cb81
...
...
@@ -5264,6 +5264,12 @@ gnat_to_gnu_param (Entity_Id gnat_param, Mechanism_Type mech,
gnu_param_type
=
TREE_TYPE
(
TREE_TYPE
(
TYPE_FIELDS
(
TREE_TYPE
(
gnu_param_type
))));
/* For GCC builtins, pass Address integer types as (void *) */
if
(
Convention
(
gnat_subprog
)
==
Convention_Intrinsic
&&
Present
(
Interface_Name
(
gnat_subprog
))
&&
Is_Descendent_Of_Address
(
Etype
(
gnat_param
)))
gnu_param_type
=
ptr_void_type_node
;
/* VMS descriptors are themselves passed by reference. */
if
(
mech
==
By_Short_Descriptor
||
(
mech
==
By_Descriptor
&&
TARGET_ABI_OPEN_VMS
&&
!
TARGET_MALLOC64
))
...
...
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