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
305aa9e2
Commit
305aa9e2
authored
Sep 23, 1992
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undo most of 9/22 changes
From-SVN: r2212
parent
65a6dd9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gcc/config/mips/mips.h
+7
-2
No files found.
gcc/config/mips/mips.h
View file @
305aa9e2
...
@@ -1632,8 +1632,10 @@ extern struct mips_frame_info current_frame_info;
...
@@ -1632,8 +1632,10 @@ extern struct mips_frame_info current_frame_info;
On the MIPS, we must skip the first argument position if we are
On the MIPS, we must skip the first argument position if we are
returning a structure or a union, to account for it's address being
returning a structure or a union, to account for it's address being
passed in $4. */
passed in $4. However, at the current time, this produces a compiler
that can't bootstrap, so comment it out for now. */
#if 0
#define FIRST_PARM_OFFSET(FNDECL) \
#define FIRST_PARM_OFFSET(FNDECL) \
(FNDECL != 0 \
(FNDECL != 0 \
&& TREE_TYPE (FNDECL) != 0 \
&& TREE_TYPE (FNDECL) != 0 \
...
@@ -1642,6 +1644,9 @@ extern struct mips_frame_info current_frame_info;
...
@@ -1642,6 +1644,9 @@ extern struct mips_frame_info current_frame_info;
|| TREE_CODE (TREE_TYPE (TREE_TYPE (FNDECL))) == UNION_TYPE) \
|| TREE_CODE (TREE_TYPE (TREE_TYPE (FNDECL))) == UNION_TYPE) \
? UNITS_PER_WORD \
? UNITS_PER_WORD \
: 0)
: 0)
#else
#define FIRST_PARM_OFFSET(FNDECL) 0
#endif
/* When a parameter is passed in a register, stack space is still
/* When a parameter is passed in a register, stack space is still
allocated for it. For the MIPS, stack space must be allocated, cf
allocated for it. For the MIPS, stack space must be allocated, cf
...
@@ -1651,7 +1656,7 @@ extern struct mips_frame_info current_frame_info;
...
@@ -1651,7 +1656,7 @@ extern struct mips_frame_info current_frame_info;
in register. In case an argument list is of form GF used registers
in register. In case an argument list is of form GF used registers
are a0 (a2,a3), but we should push over a1... */
are a0 (a2,a3), but we should push over a1... */
#define REG_PARM_STACK_SPACE(FNDECL) (
4*UNITS_PER_WORD) - FIRST_PARM_OFFSET(FNDECL
)
#define REG_PARM_STACK_SPACE(FNDECL) (
(4*UNITS_PER_WORD) - FIRST_PARM_OFFSET (FNDECL)
)
/* Define this if it is the responsibility of the caller to
/* Define this if it is the responsibility of the caller to
allocate the area reserved for arguments passed in registers.
allocate the area reserved for arguments passed in registers.
...
...
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