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
2290e0ec
Commit
2290e0ec
authored
Jan 28, 1998
by
Per Bothner
Committed by
Per Bothner
Jan 28, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r17532
parent
86052cc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
gcc/ChangeLog
+4
-0
gcc/toplev.c
+11
-8
No files found.
gcc/ChangeLog
View file @
2290e0ec
Wed Jan 28 11:45:27 1998 Per Bothner <bothner@cygnus.com>
* toplev.c (strip_off_ending): Generalize to endings up to 5 chars.
Tue Jan 27 23:15:55 1998 Lassi A. Tuura <lat@iki.fi>
* config.sub: More accurate determination of HP processor types.
...
...
gcc/toplev.c
View file @
2290e0ec
...
...
@@ -2080,20 +2080,23 @@ pipe_closed (signo)
/* Strip off a legitimate source ending from the input string NAME of
length LEN. Rather than having to know the names used by all of
our front ends, we strip off an ending of a period followed by
one,
two, or three characters.
*/
our front ends, we strip off an ending of a period followed by
up to five characters. (Java uses ".class".)
*/
void
strip_off_ending
(
name
,
len
)
char
*
name
;
int
len
;
{
if
(
len
>
2
&&
name
[
len
-
2
]
==
'.'
)
name
[
len
-
2
]
=
'\0'
;
else
if
(
len
>
3
&&
name
[
len
-
3
]
==
'.'
)
name
[
len
-
3
]
=
'\0'
;
else
if
(
len
>
4
&&
name
[
len
-
4
]
==
'.'
)
name
[
len
-
4
]
=
'\0'
;
int
i
;
for
(
i
=
2
;
i
<
6
&&
len
>
i
;
i
++
)
{
if
(
name
[
len
-
i
]
==
'.'
)
{
name
[
len
-
i
]
=
'\0'
;
break
;
}
}
}
/* Output a quoted string. */
...
...
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