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
bb562bfc
Commit
bb562bfc
authored
31 years ago
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(i960_function_name_declare): Handle names that start with '*'.
From-SVN: r6454
parent
03217a8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
gcc/config/i960/i960.c
+7
-5
No files found.
gcc/config/i960/i960.c
View file @
bb562bfc
...
...
@@ -901,7 +901,7 @@ i960_function_name_declare (file, name, fndecl)
/* Do this after choosing the leaf return register, so it will be listed
if one was chosen. */
fprintf
(
file
,
"
\t
# Function '%s'
\n
"
,
name
);
fprintf
(
file
,
"
\t
# Function '%s'
\n
"
,
(
name
[
0
]
==
'*'
?
&
name
[
1
]
:
name
)
);
fprintf
(
file
,
"
\t
# Registers used: "
);
for
(
i
=
0
,
j
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
...
...
@@ -925,12 +925,14 @@ i960_function_name_declare (file, name, fndecl)
/* Make it a leaf procedure. */
if
(
TREE_PUBLIC
(
fndecl
))
fprintf
(
file
,
"
\t
.globl
%s.lf
\n
"
,
name
);
fprintf
(
file
,
"
\t
.globl
\t
%s.lf
\n
"
,
(
name
[
0
]
==
'*'
?
&
name
[
1
]
:
name
)
);
fprintf
(
file
,
"
\t
.leafproc
\t
_%s,%s.lf
\n
"
,
name
,
name
);
fprintf
(
file
,
"_%s:
\n
"
,
name
);
fprintf
(
file
,
"
\t
.leafproc
\t
"
);
assemble_name
(
file
,
name
);
fprintf
(
file
,
",%s.lf
\n
"
,
(
name
[
0
]
==
'*'
?
&
name
[
1
]
:
name
));
ASM_OUTPUT_LABEL
(
file
,
name
);
fprintf
(
file
,
"
\t
lda LR%d,g14
\n
"
,
ret_label
);
fprintf
(
file
,
"%s.lf:
\n
"
,
name
);
fprintf
(
file
,
"%s.lf:
\n
"
,
(
name
[
0
]
==
'*'
?
&
name
[
1
]
:
name
)
);
fprintf
(
file
,
"
\t
mov g14,g%d
\n
"
,
i960_leaf_ret_reg
);
if
(
TARGET_C_SERIES
)
...
...
This diff is collapsed.
Click to expand it.
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