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
05fe5c67
Commit
05fe5c67
authored
Mar 20, 2004
by
Kazu Hirata
Committed by
Kazu Hirata
Mar 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fold-const.c (fold): Replace "expr" with "t".
From-SVN: r79761
parent
0d13be1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gcc/ChangeLog
+4
-0
gcc/fold-const.c
+5
-5
No files found.
gcc/ChangeLog
View file @
05fe5c67
2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
* fold-const.c (fold): Replace "expr" with "t".
2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
PR c/12373
...
...
gcc/fold-const.c
View file @
05fe5c67
...
...
@@ -7934,7 +7934,7 @@ fold (tree expr)
return
pedantic_non_lvalue
(
tem
);
return
t
;
}
if
(
operand_equal_p
(
arg1
,
TREE_OPERAND
(
expr
,
2
),
0
))
if
(
operand_equal_p
(
arg1
,
TREE_OPERAND
(
t
,
2
),
0
))
return
pedantic_omit_one_operand
(
type
,
arg1
,
arg0
);
/* If we have A op B ? A : C, we may be able to convert this to a
...
...
@@ -8312,12 +8312,12 @@ fold (tree expr)
case
CALL_EXPR
:
/* Check for a built-in function. */
if
(
TREE_CODE
(
TREE_OPERAND
(
expr
,
0
))
==
ADDR_EXPR
&&
(
TREE_CODE
(
TREE_OPERAND
(
TREE_OPERAND
(
expr
,
0
),
0
))
if
(
TREE_CODE
(
TREE_OPERAND
(
t
,
0
))
==
ADDR_EXPR
&&
(
TREE_CODE
(
TREE_OPERAND
(
TREE_OPERAND
(
t
,
0
),
0
))
==
FUNCTION_DECL
)
&&
DECL_BUILT_IN
(
TREE_OPERAND
(
TREE_OPERAND
(
expr
,
0
),
0
)))
&&
DECL_BUILT_IN
(
TREE_OPERAND
(
TREE_OPERAND
(
t
,
0
),
0
)))
{
tree
tmp
=
fold_builtin
(
expr
);
tree
tmp
=
fold_builtin
(
t
);
if
(
tmp
)
return
tmp
;
}
...
...
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