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
39842893
Commit
39842893
authored
Mar 09, 1999
by
Jeffrey A Law
Committed by
Jeff Law
Mar 09, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* calls.c (expand_call): Slightly reorganize code.
From-SVN: r25655
parent
89b21b68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
gcc/ChangeLog
+2
-0
gcc/calls.c
+11
-12
No files found.
gcc/ChangeLog
View file @
39842893
...
...
@@ -15,6 +15,8 @@ Tue Mar 9 09:33:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue
Mar
9
02
:
08
:
17
1999
Jeffrey
A
Law
(
law
@cygnus
.
com
)
*
calls
.
c
(
expand_call
)
:
Slightly
reorganize
code
.
*
calls
.
c
(
compute_argument_addresses
)
:
New
function
.
(
rtx_for_function_call
)
:
New
function
.
(
expand_call
)
:
Use
them
.
...
...
gcc/calls.c
View file @
39842893
...
...
@@ -1754,11 +1754,6 @@ expand_call (exp, target, ignore)
mark_addressable
(
fndecl
);
}
/* When calling a const function, we must pop the stack args right away,
so that the pop is deleted or moved with the call. */
if
(
is_const
)
NO_DEFER_POP
;
function_call_count
++
;
if
(
fndecl
&&
DECL_NAME
(
fndecl
))
...
...
@@ -1772,6 +1767,17 @@ expand_call (exp, target, ignore)
if
(
may_be_alloca
)
current_function_calls_alloca
=
1
;
/* Operand 0 is a pointer-to-function; get the type of the function. */
funtype
=
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
));
if
(
!
POINTER_TYPE_P
(
funtype
))
abort
();
funtype
=
TREE_TYPE
(
funtype
);
/* When calling a const function, we must pop the stack args right away,
so that the pop is deleted or moved with the call. */
if
(
is_const
)
NO_DEFER_POP
;
/* Don't let pending stack adjusts add up to too much.
Also, do all pending adjustments now
if there is any chance this might be a call to alloca. */
...
...
@@ -1780,13 +1786,6 @@ expand_call (exp, target, ignore)
||
(
pending_stack_adjust
>
0
&&
may_be_alloca
))
do_pending_stack_adjust
();
/* Operand 0 is a pointer-to-function; get the type of the function. */
funtype
=
TREE_TYPE
(
TREE_OPERAND
(
exp
,
0
));
if
(
!
POINTER_TYPE_P
(
funtype
))
abort
();
funtype
=
TREE_TYPE
(
funtype
);
/* Push the temporary stack slot level so that we can free any temporaries
we make. */
push_temp_slots
();
...
...
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