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
dc17cfda
Commit
dc17cfda
authored
Aug 07, 1993
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(MAX_MOVE_MAX, MAX_UNITS_PER_WORD): New macros.
(regno_save_mode, regno_save_mem): Use them. From-SVN: r5102
parent
6706083e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
gcc/caller-save.c
+12
-4
No files found.
gcc/caller-save.c
View file @
dc17cfda
...
@@ -28,19 +28,27 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -28,19 +28,27 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "reload.h"
#include "reload.h"
#include "expr.h"
#include "expr.h"
#ifndef MAX_MOVE_MAX
#define MAX_MOVE_MAX MOVE_MAX
#endif
#ifndef MAX_UNITS_PER_WORD
#define MAX_UNITS_PER_WORD UNITS_PER_WORD
#endif
/* Modes for each hard register that we can save. The smallest mode is wide
/* Modes for each hard register that we can save. The smallest mode is wide
enough to save the entire contents of the register. When saving the
enough to save the entire contents of the register. When saving the
register because it is live we first try to save in multi-register modes.
register because it is live we first try to save in multi-register modes.
If that is not possible the save is done one register at a time. */
If that is not possible the save is done one register at a time. */
static
enum
machine_mode
static
enum
machine_mode
regno_save_mode
[
FIRST_PSEUDO_REGISTER
][
M
OVE_MAX
/
UNITS_PER_WORD
+
1
];
regno_save_mode
[
FIRST_PSEUDO_REGISTER
][
M
AX_MOVE_MAX
/
MAX_
UNITS_PER_WORD
+
1
];
/* For each hard register, a place on the stack where it can be saved,
/* For each hard register, a place on the stack where it can be saved,
if needed. */
if needed. */
static
rtx
static
rtx
regno_save_mem
[
FIRST_PSEUDO_REGISTER
][
M
OVE_MAX
/
UNITS_PER_WORD
+
1
];
regno_save_mem
[
FIRST_PSEUDO_REGISTER
][
M
AX_MOVE_MAX
/
MAX_
UNITS_PER_WORD
+
1
];
/* We will only make a register eligible for caller-save if it can be
/* We will only make a register eligible for caller-save if it can be
saved in its widest mode with a simple SET insn as long as the memory
saved in its widest mode with a simple SET insn as long as the memory
...
@@ -49,9 +57,9 @@ static rtx
...
@@ -49,9 +57,9 @@ static rtx
be recognized. */
be recognized. */
static
enum
insn_code
static
enum
insn_code
reg_save_code
[
FIRST_PSEUDO_REGISTER
][
M
OVE_MAX
/
UNITS_PER_WORD
+
1
];
reg_save_code
[
FIRST_PSEUDO_REGISTER
][
M
AX_MOVE_MAX
/
MAX_
UNITS_PER_WORD
+
1
];
static
enum
insn_code
static
enum
insn_code
reg_restore_code
[
FIRST_PSEUDO_REGISTER
][
M
OVE_MAX
/
UNITS_PER_WORD
+
1
];
reg_restore_code
[
FIRST_PSEUDO_REGISTER
][
M
AX_MOVE_MAX
/
MAX_
UNITS_PER_WORD
+
1
];
/* Set of hard regs currently live (during scan of all insns). */
/* Set of hard regs currently live (during scan of all insns). */
...
...
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