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
50b04185
Commit
50b04185
authored
Jul 05, 2004
by
Richard Kenner
Committed by
Richard Kenner
Jul 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-cfg.c (verify_expr): Use CHECK_OK in binary case.
From-SVN: r84114
parent
8963a517
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
19 deletions
+7
-19
gcc/ChangeLog
+2
-0
gcc/tree-cfg.c
+5
-19
No files found.
gcc/ChangeLog
View file @
50b04185
2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* tree-cfg.c (verify_expr): Use CHECK_OK in binary case.
* function.c, langhooks-def.h, langhooks.h: Move max_size hook
to type hooks; remove bogus PARAMS.
...
...
gcc/tree-cfg.c
View file @
50b04185
...
...
@@ -3151,7 +3151,9 @@ verify_expr (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
if
(
TYPE_P
(
t
))
*
walk_subtrees
=
0
;
/* Check operand N for being valid GIMPLE and give error MSG if not. */
/* Check operand N for being valid GIMPLE and give error MSG if not.
We check for constants explicitly since they are not considered
gimple invariants if they overflowed. */
#define CHECK_OP(N, MSG) \
do { if (TREE_CODE_CLASS (TREE_CODE (TREE_OPERAND (t, N))) != 'c' \
&& !is_gimple_val (TREE_OPERAND (t, N))) \
...
...
@@ -3300,24 +3302,8 @@ verify_expr (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
case
BIT_IOR_EXPR
:
case
BIT_XOR_EXPR
:
case
BIT_AND_EXPR
:
x
=
TREE_OPERAND
(
t
,
0
);
/* We check for constants explicitly since they are not considered
gimple invariants if they overflowed. */
if
(
TREE_CODE_CLASS
(
TREE_CODE
(
x
))
!=
'c'
&&
!
is_gimple_val
(
x
))
{
error
(
"Invalid operand to binary operator"
);
return
x
;
}
x
=
TREE_OPERAND
(
t
,
1
);
/* We check for constants explicitly since they are not considered
gimple invariants if they overflowed. */
if
(
TREE_CODE_CLASS
(
TREE_CODE
(
x
))
!=
'c'
&&
!
is_gimple_val
(
x
))
{
error
(
"Invalid operand to binary operator"
);
return
x
;
}
CHECK_OP
(
0
,
"Invalid operand to binary operator"
);
CHECK_OP
(
1
,
"Invalid operand to binary operator"
);
break
;
default:
...
...
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