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
e21c472a
Commit
e21c472a
authored
Jul 18, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(process_command): When have -BstageN option, pass include
not stageN/../include to preprocessor. From-SVN: r7779
parent
7a17c588
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
gcc/gcc.c
+12
-3
No files found.
gcc/gcc.c
View file @
e21c472a
...
...
@@ -2507,15 +2507,24 @@ process_command (argc, argv)
1
,
0
,
0
);
/* As a kludge, if the arg is "[foo/]stageN/", just add
"[foo/]
stageN/../
include" to the include prefix. */
"[foo/]include" to the include prefix. */
{
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
,
concat
(
value
,
"../include"
,
""
),
1
,
0
,
0
);
{
if
(
len
==
7
)
add_prefix
(
&
include_prefix
,
"include"
,
1
,
0
,
0
);
else
{
char
*
string
=
xmalloc
(
len
+
1
);
strncpy
(
string
,
value
,
len
-
7
);
strcat
(
string
,
"include"
);
add_prefix
(
&
include_prefix
,
string
,
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