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
1e276c4a
Commit
1e276c4a
authored
May 08, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r940
parent
ae34b95d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/c-common.c
+3
-3
No files found.
gcc/c-common.c
View file @
1e276c4a
...
...
@@ -623,7 +623,7 @@ shorten_compare (op0_ptr, op1_ptr, restype_ptr, rescode_ptr)
type
=
unsigned_type
(
type
);
}
if
(
max_l
t
&&
!
unsignedp0
)
if
(
!
max_g
t
&&
!
unsignedp0
)
{
/* This is the case of (char)x >?< 0x80, which people used to use
expecting old C compilers to change the 0x80 into -0x80. */
...
...
@@ -633,9 +633,9 @@ shorten_compare (op0_ptr, op1_ptr, restype_ptr, rescode_ptr)
warning
(
"comparison is always 1 due to limited range of data type"
);
}
if
(
min_g
t
&&
unsignedp0
)
if
(
!
min_l
t
&&
unsignedp0
)
{
/* This is the case of (unsigned char)x >?< -1. */
/* This is the case of (unsigned char)x >?< -1
or < 0
. */
if
(
val
==
integer_zero_node
)
warning
(
"comparison is always 0 due to limited range of data type"
);
if
(
val
==
integer_one_node
)
...
...
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