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
30a9f69b
Commit
30a9f69b
authored
May 04, 2015
by
Jan Hubicka
Committed by
Jan Hubicka
May 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (verify_type): Check various uses of TYPE_MINVAL.
From-SVN: r222753
parent
90c19438
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
7 deletions
+56
-7
gcc/ChangeLog
+4
-0
gcc/tree.c
+52
-7
No files found.
gcc/ChangeLog
View file @
30a9f69b
2015-05-02 Jan Hubicka <hubicka@ucw.cz>
* tree.c (verify_type): Check various uses of TYPE_MINVAL.
2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
...
...
gcc/tree.c
View file @
30a9f69b
...
...
@@ -12584,15 +12584,60 @@ verify_type (const_tree t)
}
else
if
(
t
!=
mv
&&
!
verify_type_variant
(
t
,
mv
))
error_found
=
true
;
/* FIXME: C FE uses TYPE_VFIELD to record C_TYPE_INCOMPLETE_VARS
and danagle the pointer from time to time. */
if
(
RECORD_OR_UNION_TYPE_P
(
t
)
&&
TYPE_VFIELD
(
t
)
&&
TREE_CODE
(
TYPE_VFIELD
(
t
))
!=
FIELD_DECL
&&
TREE_CODE
(
TYPE_VFIELD
(
t
))
!=
TREE_LIST
)
/* Check various uses of TYPE_MINVAL. */
if
(
RECORD_OR_UNION_TYPE_P
(
t
))
{
/* FIXME: C FE uses TYPE_VFIELD to record C_TYPE_INCOMPLETE_VARS
and danagle the pointer from time to time. */
if
(
TYPE_VFIELD
(
t
)
&&
TREE_CODE
(
TYPE_VFIELD
(
t
))
!=
FIELD_DECL
&&
TREE_CODE
(
TYPE_VFIELD
(
t
))
!=
TREE_LIST
)
{
error
(
"TYPE_VFIELD is not FIELD_DECL nor TREE_LIST"
);
debug_tree
(
TYPE_VFIELD
(
t
));
error_found
=
true
;
}
}
else
if
(
TREE_CODE
(
t
)
==
POINTER_TYPE
)
{
if
(
TYPE_NEXT_PTR_TO
(
t
)
&&
TREE_CODE
(
TYPE_NEXT_PTR_TO
(
t
))
!=
POINTER_TYPE
)
{
error
(
"TYPE_NEXT_PTR_TO is not POINTER_TYPE"
);
debug_tree
(
TYPE_NEXT_PTR_TO
(
t
));
error_found
=
true
;
}
}
else
if
(
TREE_CODE
(
t
)
==
REFERENCE_TYPE
)
{
error
(
"TYPE_VFIELD is not FIELD_DECL nor TREE_LIST"
);
debug_tree
(
TYPE_VFIELD
(
t
));
if
(
TYPE_NEXT_REF_TO
(
t
)
&&
TREE_CODE
(
TYPE_NEXT_REF_TO
(
t
))
!=
REFERENCE_TYPE
)
{
error
(
"TYPE_NEXT_REF_TO is not REFERENCE_TYPE"
);
debug_tree
(
TYPE_NEXT_REF_TO
(
t
));
error_found
=
true
;
}
}
else
if
(
INTEGRAL_TYPE_P
(
t
)
||
TREE_CODE
(
t
)
==
REAL_TYPE
||
TREE_CODE
(
t
)
==
FIXED_POINT_TYPE
)
{
if
(
!
TYPE_MIN_VALUE
(
t
))
;
else
if
(
!
TREE_CONSTANT
(
TYPE_MIN_VALUE
(
t
)))
{
error
(
"TYPE_MIN_VALUE is not constant"
);
debug_tree
(
TYPE_MIN_VALUE
(
t
));
error_found
=
true
;
}
}
else
if
(
TYPE_MINVAL
(
t
))
{
error
(
"TYPE_MINVAL non-NULL"
);
debug_tree
(
TYPE_MINVAL
(
t
));
error_found
=
true
;
}
if
(
error_found
)
{
debug_tree
(
const_cast
<
tree
>
(
t
));
...
...
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