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:
6d545b7
)
(handle_directive): In `#include <xxx>' directives, remove backslash-newline properly.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 7 Sep 1994 23:31:32 +0000
(19:31 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 7 Sep 1994 23:31:32 +0000
(19:31 -0400)
(handle_directive): In `#include <xxx>' directives, remove
backslash-newline properly. Don't allow any other newlines.
From-SVN: r8036
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index
bcc0edc
..
bd83ebf
100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-3608,7
+3608,14
@@
handle_directive (ip, op)
case '<':
if (!kt->angle_brackets)
break;
- while (*bp && *bp != '>') bp++;
+ while (bp < limit && *bp != '>' && *bp != '\n') {
+ if (*bp == '\\' && bp[1] == '\n') {
+ ip->lineno++;
+ copy_command = 1;
+ bp++;
+ }
+ bp++;
+ }
break;
case '/':