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
53afc256
Commit
53afc256
authored
Dec 08, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_include): Don't turn newline markers into spaces when expanding an
include file name. From-SVN: r8629
parent
b6d90143
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
gcc/cccp.c
+25
-4
No files found.
gcc/cccp.c
View file @
53afc256
...
...
@@ -4061,7 +4061,6 @@ do_include (buf, limit, op, keyword)
int
retried
=
0
;
/* Have already tried macro
expanding the include line*/
FILE_BUF
trybuf
;
/* It got expanded into here */
int
angle_brackets
=
0
;
/* 0 for "...", 1 for <...> */
int
pcf
=
-
1
;
char
*
pcfbuf
;
...
...
@@ -4198,10 +4197,32 @@ get_filename:
error
(
"`#%s' expects
\"
FILENAME
\"
or <FILENAME>"
,
keyword
->
name
);
return
0
;
}
else
{
trybuf
=
expand_to_temp_buffer
(
buf
,
limit
,
0
,
0
);
/* Expand buffer and then remove any newline markers.
We can't just tell expand_to_temp_buffer to omit the markers,
since it would put extra spaces in include file names. */
FILE_BUF
trybuf
=
expand_to_temp_buffer
(
buf
,
limit
,
1
,
0
);
U_CHAR
*
src
=
trybuf
.
buf
;
buf
=
(
U_CHAR
*
)
alloca
(
trybuf
.
bufp
-
trybuf
.
buf
+
1
);
bcopy
((
char
*
)
trybuf
.
buf
,
(
char
*
)
buf
,
trybuf
.
bufp
-
trybuf
.
buf
);
limit
=
buf
+
(
trybuf
.
bufp
-
trybuf
.
buf
);
limit
=
buf
;
while
(
src
!=
trybuf
.
bufp
)
{
switch
((
*
limit
++
=
*
src
++
))
{
case
'\n'
:
limit
--
;
src
++
;
break
;
case
'\''
:
case
'\"'
:
{
U_CHAR
*
src1
=
skip_quoted_string
(
src
-
1
,
trybuf
.
bufp
,
0
,
NULL_PTR
,
NULL_PTR
,
NULL_PTR
);
while
(
src
!=
src1
)
*
limit
++
=
*
src
++
;
}
break
;
}
}
*
limit
=
0
;
free
(
trybuf
.
buf
);
retried
++
;
goto
get_filename
;
...
...
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