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
0497c836
Commit
0497c836
authored
17 years ago
by
Basile Starynkevitch
Committed by
Basile Starynkevitch
17 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cfg.c (dump_bb_info, dump_edge_info): Added cfun test for
robustness. From-SVN: r128176
parent
bb0500b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
gcc/ChangeLog
+5
-0
gcc/cfg.c
+7
-5
No files found.
gcc/ChangeLog
View file @
0497c836
2007-09-06 Basile Starynkevitch <basile@starynkevitch.net>
* cfg.c (dump_bb_info, dump_edge_info): Added cfun test for
robustness.
2007-09-05 Ian Lance Taylor <iant@google.com>
* tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
...
...
This diff is collapsed.
Click to expand it.
gcc/cfg.c
View file @
0497c836
...
...
@@ -534,9 +534,11 @@ dump_bb_info (basic_block bb, bool header, bool footer, int flags,
fprintf
(
file
,
", loop_depth %d, count "
,
bb
->
loop_depth
);
fprintf
(
file
,
HOST_WIDEST_INT_PRINT_DEC
,
bb
->
count
);
fprintf
(
file
,
", freq %i"
,
bb
->
frequency
);
if
(
maybe_hot_bb_p
(
bb
))
/* Both maybe_hot_bb_p & probably_never_executed_bb_p functions
crash without cfun. */
if
(
cfun
&&
maybe_hot_bb_p
(
bb
))
fprintf
(
file
,
", maybe hot"
);
if
(
probably_never_executed_bb_p
(
bb
))
if
(
cfun
&&
probably_never_executed_bb_p
(
bb
))
fprintf
(
file
,
", probably never executed"
);
fprintf
(
file
,
".
\n
"
);
...
...
@@ -665,10 +667,10 @@ void
dump_edge_info
(
FILE
*
file
,
edge
e
,
int
do_succ
)
{
basic_block
side
=
(
do_succ
?
e
->
dest
:
e
->
src
);
if
(
side
==
ENTRY_BLOCK_PTR
)
/* both ENTRY_BLOCK_PTR & EXIT_BLOCK_PTR depend upon cfun */
if
(
cfun
&&
side
==
ENTRY_BLOCK_PTR
)
fputs
(
" ENTRY"
,
file
);
else
if
(
side
==
EXIT_BLOCK_PTR
)
else
if
(
cfun
&&
side
==
EXIT_BLOCK_PTR
)
fputs
(
" EXIT"
,
file
);
else
fprintf
(
file
,
" %d"
,
side
->
index
);
...
...
This diff is collapsed.
Click to expand it.
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