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
d873d827
Commit
d873d827
authored
Aug 21, 2002
by
John David Anglin
Committed by
John David Anglin
Aug 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
From-SVN: r56493
parent
b462d4ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
gcc/ChangeLog
+4
-0
gcc/cppinit.c
+7
-1
No files found.
gcc/ChangeLog
View file @
d873d827
2002
-
08
-
21
John
David
Anglin
<
dave
@hiauly1
.
hia
.
nrc
.
ca
>
*
cppinit
.
c
(
remove_dup_nonsys_dirs
)
:
Fix
warning
and
return
value
.
2002
-
08
-
21
Joseph
S
.
Myers
<
jsm
@polyomino
.
org
.
uk
>
*
c
-
decl
.
c
(
grokdeclarator
)
:
Make
invalid
combinations
with
long
,
...
...
gcc/cppinit.c
View file @
d873d827
...
...
@@ -303,12 +303,14 @@ remove_dup_nonsys_dirs (pfile, head_ptr, end)
struct
search_path
**
head_ptr
;
struct
search_path
*
end
;
{
struct
search_path
*
prev
,
*
cur
,
*
other
;
int
sysdir
=
0
;
struct
search_path
*
prev
=
NULL
,
*
cur
,
*
other
;
for
(
cur
=
*
head_ptr
;
cur
;
cur
=
cur
->
next
)
{
if
(
cur
->
sysp
)
{
sysdir
=
1
;
for
(
other
=
*
head_ptr
,
prev
=
NULL
;
other
!=
end
;
other
=
other
?
other
->
next
:
*
head_ptr
)
...
...
@@ -327,6 +329,10 @@ remove_dup_nonsys_dirs (pfile, head_ptr, end)
}
}
if
(
!
sysdir
)
for
(
cur
=
*
head_ptr
;
cur
!=
end
;
cur
=
cur
->
next
)
prev
=
cur
;
return
prev
;
}
...
...
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