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
9e504cda
Commit
9e504cda
authored
Sep 11, 2008
by
Jan Hubicka
Committed by
Jan Hubicka
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-ssa-pre.c (phi_translate_1): Fix memory leak
From-SVN: r140283
parent
a97a7ae9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
gcc/ChangeLog
+4
-0
gcc/tree-ssa-pre.c
+5
-0
No files found.
gcc/ChangeLog
View file @
9e504cda
2008
-
09
-
11
Jan
Hubicka
<
jh
@suse
.
cz
>
*
tree
-
ssa
-
pre
.
c
(
phi_translate_1
)
:
Fix
memory
leak
2008
-
09
-
11
Jan
Hubicka
<
jh
@suse
.
cz
>
*
tree
-
ssa
.
c
(
redirect_edge_var_map_clear
)
:
Fix
formatting
.
(
free_var_map_entry
)
:
New
function
.
(
redirect_edge_var_map_destroy
)
:
Use
it
.
...
...
gcc/tree-ssa-pre.c
View file @
9e504cda
...
...
@@ -1579,7 +1579,10 @@ phi_translate_1 (pre_expr expr, bitmap_set_t set1, bitmap_set_t set2,
VEC_free
(
vn_reference_op_s
,
heap
,
newoperands
);
if
(
result
&&
is_gimple_min_invariant
(
result
))
{
gcc_assert
(
!
newoperands
);
return
get_or_alloc_expr_for_constant
(
result
);
}
expr
=
(
pre_expr
)
pool_alloc
(
pre_expr_pool
);
expr
->
kind
=
REFERENCE
;
...
...
@@ -1599,11 +1602,13 @@ phi_translate_1 (pre_expr expr, bitmap_set_t set1, bitmap_set_t set2,
newref
=
vn_reference_insert_pieces
(
newvuses
,
newoperands
,
result
,
new_val_id
);
newoperands
=
NULL
;
PRE_EXPR_REFERENCE
(
expr
)
=
newref
;
get_or_alloc_expression_id
(
expr
);
}
add_to_value
(
new_val_id
,
expr
);
}
VEC_free
(
vn_reference_op_s
,
heap
,
newoperands
);
phi_trans_add
(
oldexpr
,
expr
,
pred
);
return
expr
;
}
...
...
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