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
41e34bab
Commit
41e34bab
authored
Sep 05, 2002
by
Dale Johannesen
Committed by
Dale Johannesen
Sep 05, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In reload, retain only those clobbers added for variable-array handling.
From-SVN: r56863
parent
dc0ba55a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
gcc/ChangeLog
+5
-0
gcc/reload1.c
+7
-4
No files found.
gcc/ChangeLog
View file @
41e34bab
2002
-
09
-
05
Dale
Johannesen
<
dalej
@apple
.
com
>
*
reload1
.
c
(
reload
)
:
Retain
only
those
memory
clobbers
added
for
variable
-
array
handling
.
2002
-
09
-
05
Jason
Thorpe
<
thorpej
@wasabisystems
.
com
>
*
config
/
arm
/
arm
.
c
(
arm_return_in_memory
)
:
Implement
ATPCS
...
...
gcc/reload1.c
View file @
41e34bab
...
...
@@ -1180,9 +1180,9 @@ reload (first, global)
/* Make a pass over all the insns and delete all USEs which we inserted
only to tag a REG_EQUAL note on them. Remove all REG_DEAD and REG_UNUSED
notes. Delete all CLOBBER insns
that don't refer to the return value
or to memory (mem:BLK CLOBBERs must be retain
ed to prevent the scheduler
from misarranging variable-array code
)
and simplify (subreg (reg))
notes. Delete all CLOBBER insns
, except those that refer to the return
value and the special mem:BLK CLOBBERs add
ed to prevent the scheduler
from misarranging variable-array code
,
and simplify (subreg (reg))
operands. Also remove all REG_RETVAL and REG_LIBCALL notes since they
are no longer useful or accurate. Strip and regenerate REG_INC notes
that may have been moved around. */
...
...
@@ -1203,7 +1203,10 @@ reload (first, global)
||
find_reg_note
(
insn
,
REG_EQUAL
,
NULL_RTX
)))
||
(
GET_CODE
(
PATTERN
(
insn
))
==
CLOBBER
&&
(
GET_CODE
(
XEXP
(
PATTERN
(
insn
),
0
))
!=
MEM
||
GET_MODE
(
XEXP
(
PATTERN
(
insn
),
0
))
!=
BLKmode
)
||
GET_MODE
(
XEXP
(
PATTERN
(
insn
),
0
))
!=
BLKmode
||
(
GET_CODE
(
XEXP
(
XEXP
(
PATTERN
(
insn
),
0
),
0
))
!=
SCRATCH
&&
XEXP
(
XEXP
(
PATTERN
(
insn
),
0
),
0
)
!=
stack_pointer_rtx
))
&&
(
GET_CODE
(
XEXP
(
PATTERN
(
insn
),
0
))
!=
REG
||
!
REG_FUNCTION_VALUE_P
(
XEXP
(
PATTERN
(
insn
),
0
)))))
{
...
...
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