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
188c5e6c
Commit
188c5e6c
authored
Sep 15, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Sep 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't make bogus libcall blocks
From-SVN: r36435
parent
642dfa8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
44 deletions
+2
-44
gcc/ChangeLog
+2
-0
gcc/calls.c
+0
-44
No files found.
gcc/ChangeLog
View file @
188c5e6c
...
...
@@ -4,6 +4,8 @@
copy to a temporary first.
* expr.c (convert_move): When generating a libcall, make a libcall
block.
* calls.c (emit_library_call_value_1): Don't create a libcall
sequence here; our caller will in most cases do it.
2000-09-15 Richard Henderson <rth@cygnus.com>
...
...
gcc/calls.c
View file @
188c5e6c
...
...
@@ -3580,11 +3580,6 @@ emit_library_call_value_1 (retval, orgfun, value, fn_type, outmode, nargs, p)
count
=
0
;
/* Now we are about to start emitting insns that can be deleted
if a libcall is deleted. */
if
(
flags
&
(
ECF_CONST
|
ECF_PURE
))
start_sequence
();
push_temp_slots
();
/* If there's a structure value address to be passed,
...
...
@@ -4022,45 +4017,6 @@ emit_library_call_value_1 (retval, orgfun, value, fn_type, outmode, nargs, p)
/* Now restore inhibit_defer_pop to its actual original value. */
OK_DEFER_POP
;
/* If call is cse'able, make appropriate pair of reg-notes around it.
Test valreg so we don't crash; may safely ignore `const'
if return type is void. Disable for PARALLEL return values, because
we have no way to move such values into a pseudo register. */
if
((
flags
&
(
ECF_CONST
|
ECF_PURE
))
&&
valreg
!=
0
&&
GET_CODE
(
valreg
)
!=
PARALLEL
)
{
rtx
note
=
0
;
rtx
temp
=
gen_reg_rtx
(
GET_MODE
(
valreg
));
rtx
insns
;
int
i
;
/* Construct an "equal form" for the value which mentions all the
arguments in order as well as the function name. */
for
(
i
=
0
;
i
<
nargs
;
i
++
)
note
=
gen_rtx_EXPR_LIST
(
VOIDmode
,
argvec
[
i
].
value
,
note
);
note
=
gen_rtx_EXPR_LIST
(
VOIDmode
,
fun
,
note
);
insns
=
get_insns
();
end_sequence
();
if
(
flags
&
ECF_PURE
)
note
=
gen_rtx_EXPR_LIST
(
VOIDmode
,
gen_rtx_USE
(
VOIDmode
,
gen_rtx_MEM
(
BLKmode
,
gen_rtx_SCRATCH
(
VOIDmode
))),
note
);
emit_libcall_block
(
insns
,
temp
,
valreg
,
note
);
valreg
=
temp
;
}
else
if
(
flags
&
(
ECF_CONST
|
ECF_PURE
))
{
/* Otherwise, just write out the sequence without a note. */
rtx
insns
=
get_insns
();
end_sequence
();
emit_insns
(
insns
);
}
pop_temp_slots
();
/* Copy the value to the right place. */
...
...
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