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
23f15b0c
Commit
23f15b0c
authored
Mar 21, 1995
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_xifdef): Handle c++ comments.
(do_endif): Likewise. From-SVN: r9214
parent
f0959e58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gcc/cccp.c
+7
-2
No files found.
gcc/cccp.c
View file @
23f15b0c
...
@@ -6953,7 +6953,11 @@ do_xifdef (buf, limit, op, keyword)
...
@@ -6953,7 +6953,11 @@ do_xifdef (buf, limit, op, keyword)
U_CHAR
c
=
*
p
++
;
U_CHAR
c
=
*
p
++
;
if
(
is_space
[
c
])
if
(
is_space
[
c
])
;
;
else
if
(
c
==
'/'
&&
p
!=
ip
->
bufp
&&
*
p
==
'*'
)
{
/* ??? 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
&&
(
*
p
==
'*'
||
(
cplusplus_comments
&&
*
p
==
'/'
)))
{
/* Skip this comment. */
/* Skip this comment. */
int
junk
=
0
;
int
junk
=
0
;
U_CHAR
*
save_bufp
=
ip
->
bufp
;
U_CHAR
*
save_bufp
=
ip
->
bufp
;
...
@@ -7410,7 +7414,8 @@ do_endif (buf, limit, op, keyword)
...
@@ -7410,7 +7414,8 @@ do_endif (buf, limit, op, keyword)
while
(
p
!=
ep
)
{
while
(
p
!=
ep
)
{
U_CHAR
c
=
*
p
++
;
U_CHAR
c
=
*
p
++
;
if
(
!
is_space
[
c
])
{
if
(
!
is_space
[
c
])
{
if
(
c
==
'/'
&&
p
!=
ep
&&
*
p
==
'*'
)
{
if
(
c
==
'/'
&&
p
!=
ep
&&
(
*
p
==
'*'
||
(
cplusplus_comments
&&
*
p
==
'/'
)))
{
/* Skip this comment. */
/* Skip this comment. */
int
junk
=
0
;
int
junk
=
0
;
U_CHAR
*
save_bufp
=
ip
->
bufp
;
U_CHAR
*
save_bufp
=
ip
->
bufp
;
...
...
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