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
dec5c86b
Commit
dec5c86b
authored
30 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_xifdef, do_endif): Remove unnecessary pointer comparisons.
From-SVN: r9237
parent
6dfc5c6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/cccp.c
+5
-5
No files found.
gcc/cccp.c
View file @
dec5c86b
...
...
@@ -6953,10 +6953,10 @@ do_xifdef (buf, limit, op, keyword)
U_CHAR
c
=
*
p
++
;
if
(
is_space
[
c
])
;
/*
??? Why is the test with ip->bufp here? */
/* ??? We don't handle \-n inside /-*. */
/* ??? Comment handling in general could use a major cleanup
. */
else
if
(
c
==
'/'
&&
p
!=
ip
->
bufp
/*
Make no special provision for backslash-newline here; this is
slower if backslash-newlines are present, but it's correct,
and it's not worth it to tune for the rare backslash-newline
. */
else
if
(
c
==
'/'
&&
(
*
p
==
'*'
||
(
cplusplus_comments
&&
*
p
==
'/'
)))
{
/* Skip this comment. */
int
junk
=
0
;
...
...
@@ -7414,7 +7414,7 @@ do_endif (buf, limit, op, keyword)
while
(
p
!=
ep
)
{
U_CHAR
c
=
*
p
++
;
if
(
!
is_space
[
c
])
{
if
(
c
==
'/'
&&
p
!=
ep
if
(
c
==
'/'
&&
(
*
p
==
'*'
||
(
cplusplus_comments
&&
*
p
==
'/'
)))
{
/* Skip this comment. */
int
junk
=
0
;
...
...
This diff is collapsed.
Click to expand it.
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