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
87ce34d6
Commit
87ce34d6
authored
Sep 25, 1996
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(instantiate_decl): Always store addr back into x.
From-SVN: r12842
parent
f49e4127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
gcc/function.c
+20
-20
No files found.
gcc/function.c
View file @
87ce34d6
...
...
@@ -2684,28 +2684,28 @@ instantiate_decl (x, size, valid_only)
instantiate_virtual_regs_1
(
&
addr
,
NULL_RTX
,
0
);
if
(
!
valid_only
)
return
;
/* Now verify that the resulting address is valid for every integer or
floating-point mode up to and including SIZE bytes long. We do this
since the object might be accessed in any mode and frame addresses
are shared. */
for
(
mode
=
GET_CLASS_NARROWEST_MODE
(
MODE_INT
);
mode
!=
VOIDmode
&&
GET_MODE_SIZE
(
mode
)
<=
size
;
mode
=
GET_MODE_WIDER_MODE
(
mode
))
if
(
!
memory_address_p
(
mode
,
addr
))
return
;
if
(
valid_only
)
{
/* Now verify that the resulting address is valid for every integer or
floating-point mode up to and including SIZE bytes long. We do this
since the object might be accessed in any mode and frame addresses
are shared. */
for
(
mode
=
GET_CLASS_NARROWEST_MODE
(
MODE_INT
);
mode
!=
VOIDmode
&&
GET_MODE_SIZE
(
mode
)
<=
size
;
mode
=
GET_MODE_WIDER_MODE
(
mode
))
if
(
!
memory_address_p
(
mode
,
addr
))
return
;
for
(
mode
=
GET_CLASS_NARROWEST_MODE
(
MODE_FLOAT
);
mode
!=
VOIDmode
&&
GET_MODE_SIZE
(
mode
)
<=
size
;
mode
=
GET_MODE_WIDER_MODE
(
mode
))
if
(
!
memory_address_p
(
mode
,
addr
))
return
;
for
(
mode
=
GET_CLASS_NARROWEST_MODE
(
MODE_FLOAT
);
mode
!=
VOIDmode
&&
GET_MODE_SIZE
(
mode
)
<=
size
;
mode
=
GET_MODE_WIDER_MODE
(
mode
))
if
(
!
memory_address_p
(
mode
,
addr
))
return
;
}
/*
Otherwise, put back the address, now that we have updated it and we
know
it is valid. */
/*
Put back the address now that we have updated it and we either know
it is valid or we don't care whether
it is valid. */
XEXP
(
x
,
0
)
=
addr
;
}
...
...
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