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
811189d9
Commit
811189d9
authored
Oct 14, 2013
by
Arnaud Charlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete previous change.
From-SVN: r203567
parent
1394237e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
gcc/ada/gcc-interface/trans.c
+13
-0
No files found.
gcc/ada/gcc-interface/trans.c
View file @
811189d9
...
...
@@ -4894,6 +4894,19 @@ Exception_Handler_to_gnu_zcx (Node_Id gnat_node)
add_stmt_with_node
(
build_call_n_expr
(
begin_handler_decl
,
1
,
gnu_incoming_exc_ptr
),
gnat_node
);
/* Declare and initialize the choice parameter, if present. */
if
(
Present
(
Choice_Parameter
(
gnat_node
)))
{
tree
gnu_param
=
gnat_to_gnu_entity
(
Choice_Parameter
(
gnat_node
),
NULL_TREE
,
1
);
add_stmt
(
build_call_n_expr
(
set_exception_parameter_decl
,
2
,
build_unary_op
(
ADDR_EXPR
,
NULL_TREE
,
gnu_param
),
gnu_incoming_exc_ptr
));
}
/* We don't have an End_Label at hand to set the location of the cleanup
actions, so we use that of the exception handler itself instead. */
add_cleanup
(
build_call_n_expr
(
end_handler_decl
,
1
,
gnu_incoming_exc_ptr
),
...
...
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