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
2a23183e
Commit
2a23183e
authored
Sep 07, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(convert_for_assignment): Warn about constant integer
overflow even if no conversion is involved. From-SVN: r2075
parent
850cba29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
gcc/fold-const.c
+7
-5
No files found.
gcc/fold-const.c
View file @
2a23183e
...
@@ -3238,11 +3238,13 @@ fold (expr)
...
@@ -3238,11 +3238,13 @@ fold (expr)
if
(
!
TREE_UNSIGNED
(
type
)
if
(
!
TREE_UNSIGNED
(
type
)
&&
TREE_INT_CST_HIGH
(
arg0
)
<
0
)
&&
TREE_INT_CST_HIGH
(
arg0
)
<
0
)
{
{
if
(
TREE_INT_CST_LOW
(
arg0
)
==
0
)
HOST_WIDE_INT
low
,
high
;
t
=
build_int_2
(
0
,
-
TREE_INT_CST_HIGH
(
arg0
));
int
overflow
=
neg_double
(
TREE_INT_CST_LOW
(
arg0
),
else
TREE_INT_CST_HIGH
(
arg0
),
t
=
build_int_2
(
-
TREE_INT_CST_LOW
(
arg0
),
&
low
,
&
high
);
~
TREE_INT_CST_HIGH
(
arg0
));
t
=
build_int_2
(
low
,
high
);
TREE_TYPE
(
t
)
=
type
;
force_fit_type
(
t
,
overflow
);
}
}
}
}
else
if
(
TREE_CODE
(
arg0
)
==
REAL_CST
)
else
if
(
TREE_CODE
(
arg0
)
==
REAL_CST
)
...
...
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