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
c27c5281
Commit
c27c5281
authored
Apr 20, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(init_reg_sets_1): Make static.
(init_reg_modes): New function. (init_regs): Likewise. From-SVN: r7104
parent
34d0205f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
gcc/regclass.c
+24
-6
No files found.
gcc/regclass.c
View file @
c27c5281
...
@@ -356,7 +356,7 @@ init_reg_sets ()
...
@@ -356,7 +356,7 @@ init_reg_sets ()
/* After switches have been processed, which perhaps alter
/* After switches have been processed, which perhaps alter
`fixed_regs' and `call_used_regs', convert them to HARD_REG_SETs. */
`fixed_regs' and `call_used_regs', convert them to HARD_REG_SETs. */
void
static
void
init_reg_sets_1
()
init_reg_sets_1
()
{
{
register
int
i
;
register
int
i
;
...
@@ -398,17 +398,35 @@ init_reg_sets_1 ()
...
@@ -398,17 +398,35 @@ init_reg_sets_1 ()
if
(
call_fixed_regs
[
i
])
if
(
call_fixed_regs
[
i
])
SET_HARD_REG_BIT
(
call_fixed_reg_set
,
i
);
SET_HARD_REG_BIT
(
call_fixed_reg_set
,
i
);
}
}
}
/* Compute the table of register modes.
These values are used to record death information for individual registers
(as opposed to a multi-register mode). */
/* Compute the table of register modes.
static
void
These values are used to record death information for individual registers
init_reg_modes
()
(as opposed to a multi-register mode).
{
This can't be done until HARD_REGNO_NREGS and HARD_REGNO_MODE_OK are
register
int
i
;
usable which is after OVERRIDE_OPTIONS on some targets. */
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
reg_raw_mode
[
i
]
=
choose_hard_reg_mode
(
i
,
1
);
reg_raw_mode
[
i
]
=
choose_hard_reg_mode
(
i
,
1
);
}
}
/* Finish initializing the register sets and
initialize the register modes. */
void
init_regs
()
{
/* This finishes what was started by init_reg_sets, but couldn't be done
until after register usage was specified. */
if
(
!
output_bytecode
)
init_reg_sets_1
();
init_reg_modes
();
}
/* Return a machine mode that is legitimate for hard reg REGNO and large
/* Return a machine mode that is legitimate for hard reg REGNO and large
enough to save nregs. If we can't find one, return VOIDmode. */
enough to save nregs. If we can't find one, return VOIDmode. */
...
...
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