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
97a74ddb
Commit
97a74ddb
authored
Sep 20, 2012
by
Marek Polacek
Committed by
Marek Polacek
Sep 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't cast XNEWVEC's result.
From-SVN: r191580
parent
61e12aff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
gcc/ChangeLog
+6
-0
gcc/tree-ssa-threadupdate.c
+3
-3
No files found.
gcc/ChangeLog
View file @
97a74ddb
2012-09-20 Marek Polacek <polacek@redhat.com>
* tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's
result.
(create_edge_and_update_destination_phis): Likewise.
2012-09-20 Martin Jambor <mjambor@suse.cz>
2012-09-20 Martin Jambor <mjambor@suse.cz>
* function.c (push_cfun): Check old current_function_decl matches
* function.c (push_cfun): Check old current_function_decl matches
...
...
gcc/tree-ssa-threadupdate.c
View file @
97a74ddb
/* Thread edges through blocks and update the control flow and SSA graphs.
/* Thread edges through blocks and update the control flow and SSA graphs.
Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 201
Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 201
1, 2012
Free Software Foundation, Inc.
Free Software Foundation, Inc.
This file is part of GCC.
This file is part of GCC.
...
@@ -362,7 +362,7 @@ create_edge_and_update_destination_phis (struct redirection_data *rd,
...
@@ -362,7 +362,7 @@ create_edge_and_update_destination_phis (struct redirection_data *rd,
if
(
rd
->
outgoing_edge
->
aux
)
if
(
rd
->
outgoing_edge
->
aux
)
{
{
e
->
aux
=
(
edge
*
)
XNEWVEC
(
edge
,
2
);
e
->
aux
=
XNEWVEC
(
edge
,
2
);
THREAD_TARGET
(
e
)
=
THREAD_TARGET
(
rd
->
outgoing_edge
);
THREAD_TARGET
(
e
)
=
THREAD_TARGET
(
rd
->
outgoing_edge
);
THREAD_TARGET2
(
e
)
=
THREAD_TARGET2
(
rd
->
outgoing_edge
);
THREAD_TARGET2
(
e
)
=
THREAD_TARGET2
(
rd
->
outgoing_edge
);
}
}
...
@@ -1143,7 +1143,7 @@ mark_threaded_blocks (bitmap threaded_blocks)
...
@@ -1143,7 +1143,7 @@ mark_threaded_blocks (bitmap threaded_blocks)
for
(
i
=
0
;
i
<
VEC_length
(
edge
,
threaded_edges
);
i
+=
3
)
for
(
i
=
0
;
i
<
VEC_length
(
edge
,
threaded_edges
);
i
+=
3
)
{
{
edge
e
=
VEC_index
(
edge
,
threaded_edges
,
i
);
edge
e
=
VEC_index
(
edge
,
threaded_edges
,
i
);
edge
*
x
=
(
edge
*
)
XNEWVEC
(
edge
,
2
);
edge
*
x
=
XNEWVEC
(
edge
,
2
);
e
->
aux
=
x
;
e
->
aux
=
x
;
THREAD_TARGET
(
e
)
=
VEC_index
(
edge
,
threaded_edges
,
i
+
1
);
THREAD_TARGET
(
e
)
=
VEC_index
(
edge
,
threaded_edges
,
i
+
1
);
...
...
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