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
ea694f2d
Commit
ea694f2d
authored
Apr 06, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(process_command): Add "include" prefix for [blah/]stageN.
From-SVN: r6968
parent
5625b052
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
gcc/gcc.c
+9
-5
No files found.
gcc/gcc.c
View file @
ea694f2d
...
...
@@ -2432,12 +2432,16 @@ process_command (argc, argv)
add_prefix
(
&
include_prefix
,
concat
(
value
,
"include"
,
""
),
1
,
0
,
0
);
/* As a kludge, if the arg is "stageN/", just add
/* As a kludge, if the arg is "
[blah/]
stageN/", just add
"include" to the include prefix. */
if
(
strlen
(
value
)
==
7
&&
value
[
6
]
==
'/'
&&
strncmp
(
value
,
"stage"
,
5
)
==
0
&&
isdigit
(
value
[
5
]))
add_prefix
(
&
include_prefix
,
"include"
,
1
,
0
,
0
);
{
int
len
=
strlen
(
value
);
if
((
len
==
7
||
(
len
>
7
&&
value
[
len
-
8
]
==
'/'
))
&&
strncmp
(
value
+
len
-
7
,
"stage"
,
5
)
==
0
&&
isdigit
(
value
[
len
-
2
])
&&
value
[
len
-
1
]
==
'/'
)
add_prefix
(
&
include_prefix
,
"include"
,
1
,
0
,
0
);
}
}
break
;
...
...
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