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
b53ef1a2
Commit
b53ef1a2
authored
Dec 22, 2000
by
Nick Clifton
Committed by
Nick Clifton
Dec 22, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow the (scratch) frame pointer to be initialised from the stack pointer
plus a constant. From-SVN: r38466
parent
8230f5e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
9 deletions
+26
-9
gcc/ChangeLog
+6
-0
gcc/dwarf2out.c
+20
-9
No files found.
gcc/ChangeLog
View file @
b53ef1a2
2000-12-22 Nick Clifton <nickc@redhat.com>
* dwarf2out_frame_debug_expr: Allow the (scratch) frame
pointer to be initialised from the stack pointer plus a
constant.
2000-12-22 Bernd Schmidt <bernds@redhat.com>
* regrename.c (struct du_chain): New field "earlyclobber".
...
...
gcc/dwarf2out.c
View file @
b53ef1a2
...
...
@@ -1355,16 +1355,27 @@ dwarf2out_frame_debug_expr (expr, label)
}
else
{
if
(
GET_CODE
(
src
)
!=
PLUS
||
XEXP
(
src
,
1
)
!=
stack_pointer_rtx
)
if
(
GET_CODE
(
src
)
!=
PLUS
)
abort
();
if
(
GET_CODE
(
XEXP
(
src
,
0
))
!=
REG
||
(
unsigned
)
REGNO
(
XEXP
(
src
,
0
))
!=
cfa_temp_reg
)
abort
();
if
(
cfa
.
reg
!=
STACK_POINTER_REGNUM
)
abort
();
cfa_store
.
reg
=
REGNO
(
dest
);
cfa_store
.
offset
=
cfa
.
offset
-
cfa_temp_value
;
if
(
GET_CODE
(
XEXP
(
src
,
0
))
==
REG
&&
REGNO
(
XEXP
(
src
,
0
))
==
cfa
.
reg
&&
GET_CODE
(
XEXP
(
src
,
1
))
==
CONST_INT
)
/* Setting the FP (or a scratch that will be copied into the FP
later on) from SP + const. */
cfa
.
reg
=
REGNO
(
dest
);
else
{
if
(
XEXP
(
src
,
1
)
!=
stack_pointer_rtx
)
abort
();
if
(
GET_CODE
(
XEXP
(
src
,
0
))
!=
REG
||
(
unsigned
)
REGNO
(
XEXP
(
src
,
0
))
!=
cfa_temp_reg
)
abort
();
if
(
cfa
.
reg
!=
STACK_POINTER_REGNUM
)
abort
();
cfa_store
.
reg
=
REGNO
(
dest
);
cfa_store
.
offset
=
cfa
.
offset
-
cfa_temp_value
;
}
}
break
;
...
...
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