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
7d12cee1
Commit
7d12cee1
authored
Jun 17, 1998
by
Jeffrey A Law
Committed by
Jeff Law
Jun 17, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fold-const.c (make_range): Do not widen the type of the expression.
From-SVN: r20545
parent
b74390de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
gcc/ChangeLog
+2
-0
gcc/fold-const.c
+6
-0
No files found.
gcc/ChangeLog
View file @
7d12cee1
...
...
@@ -65,6 +65,8 @@ Wed Jun 17 15:57:48 EDT 1998 Andrew MacLeod (amacleod@cygnus.com)
Wed Jun 17 08:38:13 1998 Jeffrey A Law (law@cygnus.com)
* fold-const.c (make_range): Do not widen the type of the expression.
* expr.c (check_max_integer_computation_mode): New function.
(expand_expr): Avoid integer computations in modes wider than
MAX_INTEGER_COMPUTATION_MODE.
...
...
gcc/fold-const.c
View file @
7d12cee1
...
...
@@ -2821,6 +2821,7 @@ make_range (exp, pin_p, plow, phigh)
{
enum
tree_code
code
;
tree
arg0
,
arg1
,
type
=
NULL_TREE
;
tree
orig_type
=
NULL_TREE
;
int
in_p
,
n_in_p
;
tree
low
,
high
,
n_low
,
n_high
;
...
...
@@ -2958,6 +2959,11 @@ make_range (exp, pin_p, plow, phigh)
continue
;
case
NOP_EXPR
:
case
NON_LVALUE_EXPR
:
case
CONVERT_EXPR
:
if
(
orig_type
==
NULL_TREE
)
orig_type
=
type
;
if
(
TYPE_PRECISION
(
type
)
>
TYPE_PRECISION
(
orig_type
))
break
;
if
(
!
INTEGRAL_TYPE_P
(
type
)
||
(
low
!=
0
&&
!
int_fits_type_p
(
low
,
type
))
||
(
high
!=
0
&&
!
int_fits_type_p
(
high
,
type
)))
...
...
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