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
06d75031
Commit
06d75031
authored
Mar 26, 2015
by
Eric Botcazou
Committed by
Eric Botcazou
Mar 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Deref>: New case.
From-SVN: r221711
parent
f809d213
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/trans.c
+12
-0
No files found.
gcc/ada/ChangeLog
View file @
06d75031
2015
-
03
-
26
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
trans
.
c
(
Attribute_to_gnu
)
<
Attr_Deref
>:
New
case
.
2015
-
03
-
24
Gary
Dismukes
<
dismukes
@
adacore
.
com
>
*
sem_ch3
.
adb
:
Minor
typo
fix
(
missing
paren
).
...
...
gcc/ada/gcc-interface/trans.c
View file @
06d75031
...
...
@@ -2469,6 +2469,18 @@ Attribute_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, int attribute)
}
break
;
case
Attr_Deref
:
prefix_unused
=
true
;
gnu_expr
=
gnat_to_gnu
(
First
(
Expressions
(
gnat_node
)));
gnu_result_type
=
get_unpadded_type
(
Etype
(
gnat_node
));
/* This can be a random address so build an alias-all pointer type. */
gnu_expr
=
convert
(
build_pointer_type_for_mode
(
gnu_result_type
,
ptr_mode
,
true
),
gnu_expr
);
gnu_result
=
build_unary_op
(
INDIRECT_REF
,
NULL_TREE
,
gnu_expr
);
break
;
default
:
/* This abort means that we have an unimplemented attribute. */
gcc_unreachable
();
...
...
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