projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c03413c
)
(discard_comments): If traditional, replace a comment with nothing
author
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 8 Dec 1994 19:19:11 +0000
(14:19 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 8 Dec 1994 19:19:11 +0000
(14:19 -0500)
instead of with a space.
From-SVN: r8628
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index
fa6d363
..
45900f0
100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-8407,8
+8407,12
@@
discard_comments (start, length, newlines)
}
if (ibp[0] != '*' || ibp + 1 >= limit)
break;
- /* Comments are equivalent to spaces. */
- obp[-1] = ' ';
+ /* Comments are equivalent to spaces.
+ For -traditional, a comment is equivalent to nothing. */
+ if (traditional)
+ obp--;
+ else
+ obp[-1] = ' ';
ibp++;
while (ibp + 1 < limit) {
if (ibp[0] == '*'