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
dbb640fa
Commit
dbb640fa
authored
Nov 04, 2019
by
Aldy Hernandez
Committed by
Aldy Hernandez
Nov 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement debugging functions for assert_info's.
From-SVN: r277790
parent
2bc2379b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
gcc/ChangeLog
+5
-0
gcc/tree-vrp.c
+39
-0
No files found.
gcc/ChangeLog
View file @
dbb640fa
2019-11-04 Aldy Hernandez <aldyh@redhat.com>
* tree-vrp.c (dump_assert_info): New.
(dump_asserts_info): New.
2019-11-04 Jan Hubicka <jh@suse.cz>
2019-11-04 Jan Hubicka <jh@suse.cz>
* ipa-inline-transform.c: Include ipa-utils.h
* ipa-inline-transform.c: Include ipa-utils.h
gcc/tree-vrp.c
View file @
dbb640fa
...
@@ -2114,6 +2114,45 @@ debug_all_asserts (void)
...
@@ -2114,6 +2114,45 @@ debug_all_asserts (void)
dump_all_asserts
(
stderr
);
dump_all_asserts
(
stderr
);
}
}
/* Dump assert_info structure. */
void
dump_assert_info
(
FILE
*
file
,
const
assert_info
&
assert
)
{
fprintf
(
file
,
"Assert for: "
);
print_generic_expr
(
file
,
assert
.
name
);
fprintf
(
file
,
"
\n\t
PREDICATE: expr=["
);
print_generic_expr
(
file
,
assert
.
expr
);
fprintf
(
file
,
"] %s "
,
get_tree_code_name
(
assert
.
comp_code
));
fprintf
(
file
,
"val=["
);
print_generic_expr
(
file
,
assert
.
val
);
fprintf
(
file
,
"]
\n\n
"
);
}
DEBUG_FUNCTION
void
debug
(
const
assert_info
&
assert
)
{
dump_assert_info
(
stderr
,
assert
);
}
/* Dump a vector of assert_info's. */
void
dump_asserts_info
(
FILE
*
file
,
const
vec
<
assert_info
>
&
asserts
)
{
for
(
unsigned
i
=
0
;
i
<
asserts
.
length
();
++
i
)
{
dump_assert_info
(
file
,
asserts
[
i
]);
fprintf
(
file
,
"
\n
"
);
}
}
DEBUG_FUNCTION
void
debug
(
const
vec
<
assert_info
>
&
asserts
)
{
dump_asserts_info
(
stderr
,
asserts
);
}
/* Push the assert info for NAME, EXPR, COMP_CODE and VAL to ASSERTS. */
/* Push the assert info for NAME, EXPR, COMP_CODE and VAL to ASSERTS. */
static
void
static
void
...
...
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