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
b28fb6a1
Commit
b28fb6a1
authored
Dec 02, 2004
by
Jeff Law
Committed by
Jeff Law
Dec 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-eh.c: Revert yesterday's change.
From-SVN: r91643
parent
45fd5209
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
27 deletions
+8
-27
gcc/ChangeLog
+4
-0
gcc/tree-eh.c
+4
-27
No files found.
gcc/ChangeLog
View file @
b28fb6a1
2004
-
12
-
02
Jeff
Law
<
law
@
redhat
.
com
>
*
tree
-
eh
.
c
:
Revert
yesterday
's change.
2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
* varasm.c (decode_reg_name): Revert change to check for zero
...
...
gcc/tree-eh.c
View file @
b28fb6a1
...
...
@@ -37,21 +37,6 @@ Boston, MA 02111-1307, USA. */
#include "langhooks.h"
#include "ggc.h"
/* In some circumstances we have to save EH data around a nested
exception. The EXC_PTR_EXPR and FILTER_EXPR values are saved
into these _DECL nodes.
We lazily create this pair of _DECL nodes once per function rather
than creating a new pair of _DECLs each time we need to save the
EXEC_PTR and FILTER. This can save us literally thousands of _DECL
nodes when we have many inline destructors with an embedded try block.
This is safe as we know the lifetime of the values in these _DECL nodes.
Their lifetimes also ensure that globbing these uses into a single
pair of _DECL nodes requires no additional PHI_NODEs or SSA_NAMEs when
compared to having a pair of _DECL nodes per inline destructor with
an embedded try block. */
static
tree
save_eptr
,
save_filt
;
/* Nonzero if we are using EH to handle cleanups. */
static
int
using_eh_for_cleanups_p
=
0
;
...
...
@@ -822,13 +807,10 @@ honor_protect_cleanup_actions (struct leh_state *outer_state,
we never fallthru from this copy of the finally block. */
if
(
finally_may_fallthru
)
{
/* If we have not created _DECLs for saving the EXC_PTR
and FILTER_EXPR, create them now. */
if
(
!
save_eptr
)
{
save_eptr
=
create_tmp_var
(
ptr_type_node
,
"save_eptr"
);
save_filt
=
create_tmp_var
(
integer_type_node
,
"save_filt"
);
}
tree
save_eptr
,
save_filt
;
save_eptr
=
create_tmp_var
(
ptr_type_node
,
"save_eptr"
);
save_filt
=
create_tmp_var
(
integer_type_node
,
"save_filt"
);
i
=
tsi_start
(
finally
);
x
=
build
(
EXC_PTR_EXPR
,
ptr_type_node
);
...
...
@@ -1662,11 +1644,6 @@ lower_eh_constructs (void)
htab_delete
(
finally_tree
);
collect_eh_region_array
();
/* Wipe the DECLs we use for saving the EXC_PTR and FILTER_EXPR
to ensure we create new ones for the next function. */
save_eptr
=
NULL
;
save_filt
=
NULL
;
}
struct
tree_opt_pass
pass_lower_eh
=
...
...
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