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
7146dfdd
Commit
7146dfdd
authored
Oct 26, 1999
by
Herman A.J. ten Brugge
Committed by
Jeff Law
Oct 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* prefix.c (translate_name) Check for empty prefix string.
From-SVN: r30180
parent
1722c704
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
gcc/ChangeLog
+4
-0
gcc/prefix.c
+3
-2
No files found.
gcc/ChangeLog
View file @
7146dfdd
1999
-
10
-
25
Herman
A
.
J
.
ten
Brugge
<
Haj
.
Ten
.
Brugge
@net
.
HCC
.
nl
>
*
prefix
.
c
(
translate_name
)
Check
for
empty
prefix
string
.
Mon
Oct
25
23
:
10
:
45
1999
Andreas
Schwab
<
schwab
@suse
.
de
>
*
Makefile
.
in
(
CPP_CROSS_NAME
)
:
New
variable
.
...
...
gcc/prefix.c
View file @
7146dfdd
...
...
@@ -279,8 +279,9 @@ translate_name (name)
if
(
prefix
==
0
)
prefix
=
PREFIX
;
/* Remove any trailing directory separator from what we got. */
if
(
IS_DIR_SEPARATOR
(
prefix
[
strlen
(
prefix
)
-
1
]))
/* Remove any trailing directory separator from what we got. First check
for an empty prefix. */
if
(
prefix
[
0
]
&&
IS_DIR_SEPARATOR
(
prefix
[
strlen
(
prefix
)
-
1
]))
{
char
*
temp
=
xstrdup
(
prefix
);
temp
[
strlen
(
temp
)
-
1
]
=
0
;
...
...
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