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
2ad701ba
Commit
2ad701ba
authored
Nov 25, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_inline_function): Ensure a REG used as
COPY has REG_USERVAR_P set if LOC does. From-SVN: r2796
parent
77636079
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
gcc/integrate.c
+9
-2
No files found.
gcc/integrate.c
View file @
2ad701ba
...
...
@@ -1372,10 +1372,17 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add
{
/* This is the good case where the parameter is in a register.
If it is read-only and our argument is a constant, set up the
constant equivalence. */
if
(
GET_CODE
(
copy
)
!=
REG
&&
GET_CODE
(
copy
)
!=
SUBREG
)
constant equivalence.
If LOC is REG_USERVAR_P, the usual case, COPY must also have
that flag set if it is a register. */
if
((
GET_CODE
(
copy
)
!=
REG
&&
GET_CODE
(
copy
)
!=
SUBREG
)
||
(
GET_CODE
(
copy
)
==
REG
&&
REG_USERVAR_P
(
loc
)
&&
!
REG_USERVAR_P
(
copy
)))
{
temp
=
copy_to_mode_reg
(
GET_MODE
(
loc
),
copy
);
REG_USERVAR_P
(
temp
)
=
REG_USERVAR_P
(
loc
);
if
(
CONSTANT_P
(
copy
)
||
FIXED_BASE_PLUS_P
(
copy
))
{
map
->
const_equiv_map
[
REGNO
(
temp
)]
=
copy
;
...
...
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