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
2799d18c
Commit
2799d18c
authored
Nov 05, 2009
by
Eric Botcazou
Committed by
Eric Botcazou
Nov 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.
From-SVN: r153949
parent
22d12fc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/utils.c
+18
-6
No files found.
gcc/ada/ChangeLog
View file @
2799d18c
2009
-
11
-
05
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
2009
-
11
-
05
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
utils
.
c
(
gnat_type_for_mode
):
Handle
vector
modes
.
2009
-
11
-
05
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
trans
.
c
(
lvalue_required_p
)
<
N_Unchecked_Conversion
>:
*
gcc
-
interface
/
trans
.
c
(
lvalue_required_p
)
<
N_Unchecked_Conversion
>:
New
case
.
New
case
.
...
...
gcc/ada/gcc-interface/utils.c
View file @
2799d18c
...
@@ -2177,16 +2177,28 @@ gnat_type_for_mode (enum machine_mode mode, int unsignedp)
...
@@ -2177,16 +2177,28 @@ gnat_type_for_mode (enum machine_mode mode, int unsignedp)
{
{
if
(
mode
==
BLKmode
)
if
(
mode
==
BLKmode
)
return
NULL_TREE
;
return
NULL_TREE
;
else
if
(
mode
==
VOIDmode
)
if
(
mode
==
VOIDmode
)
return
void_type_node
;
return
void_type_node
;
else
if
(
COMPLEX_MODE_P
(
mode
))
if
(
COMPLEX_MODE_P
(
mode
))
return
NULL_TREE
;
return
NULL_TREE
;
else
if
(
SCALAR_FLOAT_MODE_P
(
mode
))
if
(
SCALAR_FLOAT_MODE_P
(
mode
))
return
float_type_for_precision
(
GET_MODE_PRECISION
(
mode
),
mode
);
return
float_type_for_precision
(
GET_MODE_PRECISION
(
mode
),
mode
);
else
if
(
SCALAR_INT_MODE_P
(
mode
))
if
(
SCALAR_INT_MODE_P
(
mode
))
return
gnat_type_for_size
(
GET_MODE_BITSIZE
(
mode
),
unsignedp
);
return
gnat_type_for_size
(
GET_MODE_BITSIZE
(
mode
),
unsignedp
);
else
return
NULL_TREE
;
if
(
VECTOR_MODE_P
(
mode
))
{
enum
machine_mode
inner_mode
=
GET_MODE_INNER
(
mode
);
tree
inner_type
=
gnat_type_for_mode
(
inner_mode
,
unsignedp
);
if
(
inner_type
)
return
build_vector_type_for_mode
(
inner_type
,
mode
);
}
return
NULL_TREE
;
}
}
/* Return the unsigned version of a TYPE_NODE, a scalar type. */
/* Return the unsigned version of a TYPE_NODE, a scalar type. */
...
...
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