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
001af587
Commit
001af587
authored
Aug 11, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(parser_build_binary_op): Warn about expressions like `1<=i<=N'.
From-SVN: r1794
parent
b5c52586
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gcc/c-typeck.c
+5
-0
No files found.
gcc/c-typeck.c
View file @
001af587
...
@@ -2136,6 +2136,11 @@ parser_build_binary_op (code, arg1, arg2)
...
@@ -2136,6 +2136,11 @@ parser_build_binary_op (code, arg1, arg2)
class
=
TREE_CODE_CLASS
(
TREE_CODE
(
result
));
class
=
TREE_CODE_CLASS
(
TREE_CODE
(
result
));
/* Similarly, check for cases like 1<=i<=10 that are probably errors. */
if
(
class
==
'<'
&&
extra_warnings
&&
(
TREE_CODE_CLASS
(
code1
)
==
'<'
||
TREE_CODE_CLASS
(
code2
)
==
'<'
))
warning
(
"comparisons like X<=Y<=Z do not have their mathematical meaning"
);
/* Record the code that was specified in the source,
/* Record the code that was specified in the source,
for the sake of warnings about confusing nesting. */
for the sake of warnings about confusing nesting. */
if
(
class
==
'e'
||
class
==
'1'
if
(
class
==
'e'
||
class
==
'1'
...
...
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