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
22ba338b
Commit
22ba338b
authored
Oct 30, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(convert_and_check): Don't warn converting 0xff
to a signed char, etc., unless pedantic. From-SVN: r5944
parent
708e813b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
gcc/c-common.c
+6
-1
No files found.
gcc/c-common.c
View file @
22ba338b
...
...
@@ -1019,7 +1019,12 @@ convert_and_check (type, expr)
if
(
!
(
TREE_UNSIGNED
(
type
)
<
TREE_UNSIGNED
(
TREE_TYPE
(
expr
))
&&
TREE_CODE
(
TREE_TYPE
(
expr
))
==
INTEGER_TYPE
&&
TYPE_PRECISION
(
type
)
==
TYPE_PRECISION
(
TREE_TYPE
(
expr
))))
warning
(
"overflow in implicit constant conversion"
);
/* If EXPR fits in the unsigned version of TYPE,
don't warn unless pedantic. */
if
(
pedantic
||
TREE_UNSIGNED
(
type
)
||
!
int_fits_type_p
(
expr
,
unsigned_type
(
type
)))
warning
(
"overflow in implicit constant conversion"
);
}
else
unsigned_conversion_warning
(
t
,
expr
);
...
...
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