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
868fc750
Commit
868fc750
authored
May 11, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(convert_and_check): Don't diagnose overflow in constant expression
merely because conversion overflowed. From-SVN: r9626
parent
5be1df77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
gcc/c-common.c
+4
-0
No files found.
gcc/c-common.c
View file @
868fc750
...
@@ -1369,6 +1369,10 @@ convert_and_check (type, expr)
...
@@ -1369,6 +1369,10 @@ convert_and_check (type, expr)
{
{
TREE_OVERFLOW
(
t
)
=
0
;
TREE_OVERFLOW
(
t
)
=
0
;
/* Do not diagnose overflow in a constant expression merely
because a conversion overflowed. */
TREE_CONSTANT_OVERFLOW
(
t
)
=
TREE_CONSTANT_OVERFLOW
(
expr
);
/* No warning for converting 0x80000000 to int. */
/* No warning for converting 0x80000000 to int. */
if
(
!
(
TREE_UNSIGNED
(
type
)
<
TREE_UNSIGNED
(
TREE_TYPE
(
expr
))
if
(
!
(
TREE_UNSIGNED
(
type
)
<
TREE_UNSIGNED
(
TREE_TYPE
(
expr
))
&&
TREE_CODE
(
TREE_TYPE
(
expr
))
==
INTEGER_TYPE
&&
TREE_CODE
(
TREE_TYPE
(
expr
))
==
INTEGER_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