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
1b81aa14
Commit
1b81aa14
authored
Aug 26, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fold): Avoid the normal STRIP_NOPS on arg of NOP_EXPR.
From-SVN: r1959
parent
3bf40d18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletions
+21
-1
gcc/fold-const.c
+21
-1
No files found.
gcc/fold-const.c
View file @
1b81aa14
...
...
@@ -2849,7 +2849,27 @@ fold (expr)
}
kind
=
TREE_CODE_CLASS
(
code
);
if
(
kind
==
'e'
||
kind
==
'<'
||
kind
==
'1'
||
kind
==
'2'
||
kind
==
'r'
)
if
(
code
==
NOP_EXPR
||
code
==
FLOAT_EXPR
||
code
==
CONVERT_EXPR
)
{
/* Special case for conversion ops that can have fixed point args. */
arg0
=
TREE_OPERAND
(
t
,
0
);
/* Don't use STRIP_NOPS, because signedness of argument type matters. */
if
(
arg0
!=
0
)
STRIP_TYPE_NOPS
(
arg0
);
if
(
arg0
!=
0
&&
TREE_CODE
(
arg0
)
!=
INTEGER_CST
#if ! defined (REAL_IS_NOT_DOUBLE) || defined (REAL_ARITHMETIC)
&&
TREE_CODE
(
arg0
)
!=
REAL_CST
#endif
/* not REAL_IS_NOT_DOUBLE, or REAL_ARITHMETIC */
)
/* Note that TREE_CONSTANT isn't enough:
static var addresses are constant but we can't
do arithmetic on them. */
wins
=
0
;
}
else
if
(
kind
==
'e'
||
kind
==
'<'
||
kind
==
'1'
||
kind
==
'2'
||
kind
==
'r'
)
{
register
int
len
=
tree_code_length
[(
int
)
code
];
register
int
i
;
...
...
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