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
f77107e8
Commit
f77107e8
authored
Jan 22, 2015
by
Eric Botcazou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fold-const.c (const_binop): Add early return for non-tcc_binary.
From-SVN: r220007
parent
0c799056
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
gcc/ChangeLog
+5
-1
gcc/fold-const.c
+4
-0
No files found.
gcc/ChangeLog
View file @
f77107e8
2015-01-23 Chen Gang <gang.chen.5i5j@gmail.com>
2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
* fold-const.c (const_binop): Add early return for non-tcc_binary.
2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
* toplev.c (init_local_tick): Process the failure when read
* toplev.c (init_local_tick): Process the failure when read
fails for random_seed.
fails for random_seed.
...
...
gcc/fold-const.c
View file @
f77107e8
...
@@ -1562,9 +1562,13 @@ const_binop (enum tree_code code, tree type, tree arg1, tree arg2)
...
@@ -1562,9 +1562,13 @@ const_binop (enum tree_code code, tree type, tree arg1, tree arg2)
default
:
;
default
:
;
}
}
if
(
TREE_CODE_CLASS
(
code
)
!=
tcc_binary
)
return
NULL_TREE
;
/* Make sure type and arg0 have the same saturating flag. */
/* Make sure type and arg0 have the same saturating flag. */
gcc_checking_assert
(
TYPE_SATURATING
(
type
)
gcc_checking_assert
(
TYPE_SATURATING
(
type
)
==
TYPE_SATURATING
(
TREE_TYPE
(
arg1
)));
==
TYPE_SATURATING
(
TREE_TYPE
(
arg1
)));
return
const_binop
(
code
,
arg1
,
arg2
);
return
const_binop
(
code
,
arg1
,
arg2
);
}
}
...
...
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