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
1942e820
Commit
1942e820
authored
Nov 16, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(rescan): Remove unnecessary comparisons of ibp to limit.
From-SVN: r8469
parent
534bfae4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gcc/cccp.c
+6
-6
No files found.
gcc/cccp.c
View file @
1942e820
...
...
@@ -2880,7 +2880,7 @@ do { ip = &instack[indepth]; \
while
(
ibp
<
limit
)
{
switch
(
*
ibp
++
)
{
case
'/'
:
if
(
warn_comments
&&
ibp
<
limit
&&
*
ibp
==
'*'
)
if
(
warn_comments
&&
*
ibp
==
'*'
)
warning
(
"`/*' within comment"
);
break
;
case
'*'
:
...
...
@@ -2928,8 +2928,8 @@ do { ip = &instack[indepth]; \
as an identifier. Periods also, for sake of "3.e7". */
if
(
ident_length
==
0
)
{
while
(
ibp
<
limit
)
{
while
(
ibp
<
limit
&&
ibp
[
0
]
==
'\\'
&&
ibp
[
1
]
==
'\n'
)
{
for
(;;
)
{
while
(
ibp
[
0
]
==
'\\'
&&
ibp
[
1
]
==
'\n'
)
{
++
ip
->
lineno
;
ibp
+=
2
;
}
...
...
@@ -2942,11 +2942,11 @@ do { ip = &instack[indepth]; \
/* A sign can be part of a preprocessing number
if it follows an e. */
if
(
c
==
'e'
||
c
==
'E'
)
{
while
(
ibp
<
limit
&&
ibp
[
0
]
==
'\\'
&&
ibp
[
1
]
==
'\n'
)
{
while
(
ibp
[
0
]
==
'\\'
&&
ibp
[
1
]
==
'\n'
)
{
++
ip
->
lineno
;
ibp
+=
2
;
}
if
(
ibp
<
limit
&&
(
*
ibp
==
'+'
||
*
ibp
==
'-'
)
)
{
if
(
*
ibp
==
'+'
||
*
ibp
==
'-'
)
{
*
obp
++
=
*
ibp
++
;
/* But traditional C does not let the token go past the sign. */
if
(
traditional
)
...
...
@@ -3204,7 +3204,7 @@ startagain:
old_oln
=
op
->
lineno
;
}
/* A comment: copy it unchanged or discard it. */
else
if
(
*
ibp
==
'/'
&&
ibp
+
1
!=
limit
&&
ibp
[
1
]
==
'*'
)
{
else
if
(
*
ibp
==
'/'
&&
ibp
[
1
]
==
'*'
)
{
if
(
put_out_comments
)
{
*
obp
++
=
'/'
;
*
obp
++
=
'*'
;
...
...
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