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
34e56753
Commit
34e56753
authored
Jan 17, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r204
parent
6c65299b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
7 deletions
+23
-7
gcc/global.c
+21
-5
gcc/integrate.c
+1
-1
gcc/optabs.c
+0
-0
gcc/print-tree.c
+1
-1
gcc/protoize.c
+0
-0
No files found.
gcc/global.c
View file @
34e56753
/* Allocate registers for pseudo-registers that span basic blocks.
/* Allocate registers for pseudo-registers that span basic blocks.
Copyright (C) 1987
-
1991 Free Software Foundation, Inc.
Copyright (C) 1987
, 1988,
1991 Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -394,9 +394,17 @@ global_alloc (file)
...
@@ -394,9 +394,17 @@ global_alloc (file)
for
(
i
=
FIRST_PSEUDO_REGISTER
;
i
<
max_regno
;
i
++
)
for
(
i
=
FIRST_PSEUDO_REGISTER
;
i
<
max_regno
;
i
++
)
if
(
reg_allocno
[
i
]
<
0
&&
reg_renumber
[
i
]
>=
0
)
if
(
reg_allocno
[
i
]
<
0
&&
reg_renumber
[
i
]
>=
0
)
{
{
local_reg_n_refs
[
reg_renumber
[
i
]]
+=
reg_n_refs
[
i
];
int
regno
=
reg_renumber
[
i
];
local_reg_live_length
[
reg_renumber
[
i
]]
+=
reg_live_length
[
i
];
int
endregno
=
regno
+
HARD_REGNO_NREGS
(
regno
,
PSEUDO_REGNO_MODE
(
i
));
int
j
;
for
(
j
=
regno
;
j
<
endregno
;
j
++
)
{
local_reg_n_refs
[
j
]
+=
reg_n_refs
[
i
];
local_reg_live_length
[
j
]
+=
reg_live_length
[
i
];
}
}
}
/* We can't override local-alloc for a reg used not just by local-alloc. */
/* We can't override local-alloc for a reg used not just by local-alloc. */
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
if
(
regs_ever_live
[
i
])
if
(
regs_ever_live
[
i
])
...
@@ -1016,8 +1024,16 @@ find_reg (allocno, losers, all_regs_p, accept_call_clobbered, retrying)
...
@@ -1016,8 +1024,16 @@ find_reg (allocno, losers, all_regs_p, accept_call_clobbered, retrying)
than it would be used by this one allocno! */
than it would be used by this one allocno! */
int
k
;
int
k
;
for
(
k
=
0
;
k
<
max_regno
;
k
++
)
for
(
k
=
0
;
k
<
max_regno
;
k
++
)
if
(
reg_renumber
[
k
]
==
i
)
if
(
reg_renumber
[
k
]
>=
0
)
reg_renumber
[
k
]
=
-
1
;
{
int
regno
=
reg_renumber
[
k
];
int
endregno
=
regno
+
HARD_REGNO_NREGS
(
regno
,
PSEUDO_REGNO_MODE
(
k
));
if
(
i
>=
regno
&&
i
<
endregno
)
reg_renumber
[
k
]
=
-
1
;
}
best_reg
=
i
;
best_reg
=
i
;
break
;
break
;
}
}
...
...
gcc/integrate.c
View file @
34e56753
/* Procedure integration for GNU CC.
/* Procedure integration for GNU CC.
Copyright (C) 1988, 199
2
Free Software Foundation, Inc.
Copyright (C) 1988, 199
1
Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@cygnus.com)
Contributed by Michael Tiemann (tiemann@cygnus.com)
This file is part of GNU CC.
This file is part of GNU CC.
...
...
gcc/optabs.c
View file @
34e56753
This diff is collapsed.
Click to expand it.
gcc/print-tree.c
View file @
34e56753
/* Prints out tree in human readable form - GNU C-compiler
/* Prints out tree in human readable form - GNU C-compiler
Copyright (C) 1990 Free Software Foundation, Inc.
Copyright (C) 1990
, 1991
Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
...
gcc/protoize.c
View file @
34e56753
This diff is collapsed.
Click to expand it.
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