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
1815bfc2
Commit
1815bfc2
authored
Apr 17, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(block_number, BLOCK_NUM, reg_to_stack): Use ints, not shorts to count
blocks. From-SVN: r4177
parent
7ee8a9d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/reg-stack.c
+3
-3
No files found.
gcc/reg-stack.c
View file @
1815bfc2
...
@@ -216,7 +216,7 @@ static HARD_REG_SET *block_out_reg_set;
...
@@ -216,7 +216,7 @@ static HARD_REG_SET *block_out_reg_set;
later, but only to look up an insn that is the head or tail of some
later, but only to look up an insn that is the head or tail of some
block. life_analysis and the stack register conversion process can
block. life_analysis and the stack register conversion process can
add insns within a block. */
add insns within a block. */
static
shor
t
*
block_number
;
static
in
t
*
block_number
;
/* This is the register file for all register after conversion */
/* This is the register file for all register after conversion */
static
rtx
FP_mode_reg
[
FIRST_PSEUDO_REGISTER
][(
int
)
MAX_MACHINE_MODE
];
static
rtx
FP_mode_reg
[
FIRST_PSEUDO_REGISTER
][(
int
)
MAX_MACHINE_MODE
];
...
@@ -226,7 +226,7 @@ static rtx FP_mode_reg[FIRST_PSEUDO_REGISTER][(int) MAX_MACHINE_MODE];
...
@@ -226,7 +226,7 @@ static rtx FP_mode_reg[FIRST_PSEUDO_REGISTER][(int) MAX_MACHINE_MODE];
#define BLOCK_NUM(INSN) \
#define BLOCK_NUM(INSN) \
(((INSN_UID (INSN) > max_uid) \
(((INSN_UID (INSN) > max_uid) \
? (
shor
t *)(abort() , 0) \
? (
in
t *)(abort() , 0) \
: block_number)[INSN_UID (INSN)])
: block_number)[INSN_UID (INSN)])
extern
rtx
gen_jump
();
extern
rtx
gen_jump
();
...
@@ -366,7 +366,7 @@ reg_to_stack (first, file)
...
@@ -366,7 +366,7 @@ reg_to_stack (first, file)
bzero
(
block_stack_in
,
blocks
*
sizeof
(
struct
stack_def
));
bzero
(
block_stack_in
,
blocks
*
sizeof
(
struct
stack_def
));
bzero
(
block_out_reg_set
,
blocks
*
sizeof
(
HARD_REG_SET
));
bzero
(
block_out_reg_set
,
blocks
*
sizeof
(
HARD_REG_SET
));
block_number
=
(
short
*
)
alloca
((
max_uid
+
1
)
*
sizeof
(
shor
t
));
block_number
=
(
int
*
)
alloca
((
max_uid
+
1
)
*
sizeof
(
in
t
));
find_blocks
(
first
);
find_blocks
(
first
);
stack_reg_life_analysis
(
first
);
stack_reg_life_analysis
(
first
);
...
...
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