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
04c8d9b9
Commit
04c8d9b9
authored
Mar 04, 2001
by
Neil Booth
Committed by
Neil Booth
Mar 04, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cppfiles.c (search_from): Special case the empty string.
From-SVN: r40236
parent
7868b4a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
gcc/ChangeLog
+4
-0
gcc/cppfiles.c
+5
-1
No files found.
gcc/ChangeLog
View file @
04c8d9b9
2001-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
* cppfiles.c (search_from): Special case the empty string.
2001-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
* cppfiles.c (_cpp_execute_include): Don't make a null-terminated
copy of the filename. Don't use CPP_PREV_BUFFER. Don't call
strlen or strcpy; we already know the length.
...
...
gcc/cppfiles.c
View file @
04c8d9b9
...
...
@@ -804,7 +804,11 @@ search_from (pfile, inc)
if
(
CPP_OPTION
(
pfile
,
ignore_srcdir
))
return
CPP_OPTION
(
pfile
,
quote_include
);
dlen
=
basename
(
inc
->
name
)
-
inc
->
name
;
/* basename () on Solaris returns "." for an empty string. */
dlen
=
0
;
if
(
inc
->
name
[
0
]
!=
'\0'
)
dlen
=
basename
(
inc
->
name
)
-
inc
->
name
;
if
(
dlen
)
{
/* We don't guarantee NAME is null-terminated. This saves
...
...
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