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
630dfc9c
Commit
630dfc9c
authored
May 06, 2012
by
Tristan Gingold
Committed by
Eric Botcazou
May 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/trans.c (gigi): Decorate reraise_zcx_decl.
From-SVN: r187210
parent
9422c886
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/trans.c
+6
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gnat.dg/warn7.adb
+18
-0
No files found.
gcc/ada/ChangeLog
View file @
630dfc9c
2012
-
05
-
06
Tristan
Gingold
<
gingold
@
adacore
.
com
>
*
gcc
-
interface
/
trans
.
c
(
gigi
):
Decorate
reraise_zcx_decl
.
2012
-
05
-
06
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gcc
-
interface
/
decl
.
c
(
gnat_to_gnu_entity
)
<
object
>:
In
the
renaming
...
...
gcc/ada/gcc-interface/trans.c
View file @
630dfc9c
...
...
@@ -502,7 +502,12 @@ gigi (Node_Id gnat_root, int max_gnat_node, int number_name ATTRIBUTE_UNUSED,
=
create_subprog_decl
(
get_identifier
(
"__gnat_reraise_zcx"
),
NULL_TREE
,
ftype
,
NULL_TREE
,
false
,
true
,
true
,
true
,
NULL
,
Empty
);
/* Indicate that these never return. */
DECL_IGNORED_P
(
reraise_zcx_decl
)
=
1
;
TREE_THIS_VOLATILE
(
reraise_zcx_decl
)
=
1
;
TREE_SIDE_EFFECTS
(
reraise_zcx_decl
)
=
1
;
TREE_TYPE
(
reraise_zcx_decl
)
=
build_qualified_type
(
TREE_TYPE
(
reraise_zcx_decl
),
TYPE_QUAL_VOLATILE
);
/* If in no exception handlers mode, all raise statements are redirected to
__gnat_last_chance_handler. No need to redefine raise_nodefer_decl since
...
...
@@ -550,6 +555,7 @@ gigi (Node_Id gnat_root, int max_gnat_node, int number_name ATTRIBUTE_UNUSED,
build_function_type_list
(
build_pointer_type
(
except_type_node
),
NULL_TREE
),
NULL_TREE
,
false
,
true
,
true
,
true
,
NULL
,
Empty
);
DECL_IGNORED_P
(
get_excptr_decl
)
=
1
;
raise_nodefer_decl
=
create_subprog_decl
...
...
gcc/testsuite/ChangeLog
View file @
630dfc9c
2012-05-06 Tristan Gingold <gingold@adacore.com>
* gnat.dg/warn7.adb: New test.
2012-05-06 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/renamings.ads: Rename to...
...
...
gcc/testsuite/gnat.dg/warn7.adb
0 → 100644
View file @
630dfc9c
-- { dg-do compile }
procedure Warn7 is
procedure Nested;
pragma No_Return (Nested);
procedure Nested is
begin
raise Constraint_Error;
exception
when Constraint_Error =>
raise;
end;
begin
Nested;
end;
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