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
4cf3301c
Commit
4cf3301c
authored
Jan 09, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(lookup_compiler): Fix special code for `-' suffix.
From-SVN: r3174
parent
6de2de12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
gcc/gcc.c
+7
-6
No files found.
gcc/gcc.c
View file @
4cf3301c
...
...
@@ -3664,12 +3664,13 @@ lookup_compiler (name, length, language)
/* Look for a suffix. */
for
(
cp
=
compilers
+
n_compilers
-
1
;
cp
>=
compilers
;
cp
--
)
{
if
(
strlen
(
cp
->
suffix
)
<
length
/* See if the suffix matches the end of NAME. */
&&
!
strcmp
(
cp
->
suffix
,
name
+
length
-
strlen
(
cp
->
suffix
))
/* The suffix `-' matches only the file name `-'. */
&&
!
(
!
strcmp
(
cp
->
suffix
,
"-"
)
&&
length
!=
1
))
if
(
/* The suffix `-' matches only the file name `-'. */
(
!
strcmp
(
cp
->
suffix
,
"-"
)
&&
!
strcmp
(
name
,
"-"
))
||
(
strlen
(
cp
->
suffix
)
<
length
/* See if the suffix matches the end of NAME. */
&&
!
strcmp
(
cp
->
suffix
,
name
+
length
-
strlen
(
cp
->
suffix
))))
{
if
(
cp
->
spec
[
0
][
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