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
698cdd84
Commit
698cdd84
authored
Feb 29, 1996
by
Stan Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(i386_return_pops_args): Cleanup extra argument
From-SVN: r11389
parent
4d46c3ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
19 deletions
+18
-19
gcc/config/i386/i386.c
+18
-19
No files found.
gcc/config/i386/i386.c
View file @
698cdd84
...
@@ -460,31 +460,30 @@ i386_return_pops_args (fundecl, funtype, size)
...
@@ -460,31 +460,30 @@ i386_return_pops_args (fundecl, funtype, size)
tree
fundecl
;
tree
fundecl
;
tree
funtype
;
tree
funtype
;
int
size
;
int
size
;
{
{
int
rtd
=
TARGET_RTD
;
int
rtd
=
TARGET_RTD
;
if
(
TREE_CODE
(
funtype
)
==
IDENTIFIER_NODE
)
if
(
TREE_CODE
(
funtype
)
==
IDENTIFIER_NODE
)
return
0
;
return
0
;
/* Cdecl functions override -mrtd, and never pop the stack */
/* Cdecl functions override -mrtd, and never pop the stack */
if
(
lookup_attribute
(
"cdecl"
,
TYPE_ATTRIBUTES
(
funtype
)))
if
(
!
lookup_attribute
(
"cdecl"
,
TYPE_ATTRIBUTES
(
funtype
)))
{
/* Stdcall functions will pop the stack if not variable args */
if
(
lookup_attribute
(
"stdcall"
,
TYPE_ATTRIBUTES
(
funtype
)))
rtd
=
1
;
if
(
rtd
&&
(
TYPE_ARG_TYPES
(
funtype
)
==
NULL_TREE
||
(
TREE_VALUE
(
tree_last
(
TYPE_ARG_TYPES
(
funtype
)))
==
void_type_node
)))
return
size
;
}
/* Lose any fake structure return argument */
if
(
aggregate_value_p
(
TREE_TYPE
(
funtype
)))
return
GET_MODE_SIZE
(
Pmode
);
return
0
;
return
0
;
/* Stdcall functions will pop the stack if not variable args */
if
(
lookup_attribute
(
"stdcall"
,
TYPE_ATTRIBUTES
(
funtype
)))
rtd
=
1
;
if
(
rtd
)
{
if
(
TYPE_ARG_TYPES
(
funtype
)
==
NULL_TREE
||
(
TREE_VALUE
(
tree_last
(
TYPE_ARG_TYPES
(
funtype
)))
==
void_type_node
))
return
size
;
if
(
aggregate_value_p
(
TREE_TYPE
(
funtype
)))
return
GET_MODE_SIZE
(
Pmode
);
}
return
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