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
410d3f5d
Commit
410d3f5d
authored
Jul 18, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fold, case CONVERT_EXPR): Don't merge conversions if outer is to
handle a type with differing precision. From-SVN: r10145
parent
56a9868e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gcc/fold-const.c
+8
-2
No files found.
gcc/fold-const.c
View file @
410d3f5d
...
...
@@ -3445,11 +3445,14 @@ fold (expr)
float or both integer, we don't need the middle conversion if
it is wider than the final type and doesn't change the signedness
(for integers). Avoid this if the final type is a pointer
since then we sometimes need the inner conversion. */
since then we sometimes need the inner conversion. Likewise if
the outer has a precision not equal to the size of its mode. */
if
((((
inter_int
||
inter_ptr
)
&&
(
inside_int
||
inside_ptr
))
||
(
inter_float
&&
inside_float
))
&&
inter_prec
>=
inside_prec
&&
(
inter_float
||
inter_unsignedp
==
inside_unsignedp
)
&&
!
(
final_prec
!=
GET_MODE_BITSIZE
(
TYPE_MODE
(
final_type
))
&&
TYPE_MODE
(
final_type
)
==
TYPE_MODE
(
inter_type
))
&&
!
final_ptr
)
return
convert
(
final_type
,
TREE_OPERAND
(
TREE_OPERAND
(
t
,
0
),
0
));
...
...
@@ -3471,7 +3474,10 @@ fold (expr)
&&
((
inter_unsignedp
&&
inter_prec
>
inside_prec
)
==
(
final_unsignedp
&&
final_prec
>
inter_prec
))
&&
!
(
inside_ptr
&&
inter_prec
!=
final_prec
)
&&
!
(
final_ptr
&&
inside_prec
!=
inter_prec
))
&&
!
(
final_ptr
&&
inside_prec
!=
inter_prec
)
&&
!
(
final_prec
!=
GET_MODE_BITSIZE
(
TYPE_MODE
(
final_type
))
&&
TYPE_MODE
(
final_type
)
==
TYPE_MODE
(
inter_type
))
&&
!
final_ptr
)
return
convert
(
final_type
,
TREE_OPERAND
(
TREE_OPERAND
(
t
,
0
),
0
));
}
...
...
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