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
0273f326
Commit
0273f326
authored
Mar 25, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_prolog): Correctly compute floating-reg save area offset.
From-SVN: r6899
parent
e4e873f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
gcc/config/alpha/alpha.c
+5
-1
No files found.
gcc/config/alpha/alpha.c
View file @
0273f326
...
...
@@ -1214,6 +1214,7 @@ output_prolog (file, size)
HOST_WIDE_INT
reg_offset
=
vars_size
+
current_function_outgoing_args_size
;
HOST_WIDE_INT
start_reg_offset
=
reg_offset
;
HOST_WIDE_INT
actual_start_reg_offset
=
start_reg_offset
;
int
int_reg_save_area_size
=
0
;
rtx
insn
;
int
reg_offset_base_reg
=
30
;
unsigned
reg_mask
=
0
;
...
...
@@ -1358,6 +1359,7 @@ output_prolog (file, size)
reg_mask
|=
1
<<
26
;
fprintf
(
file
,
"
\t
stq $26,%d($%d)
\n
"
,
reg_offset
,
reg_offset_base_reg
);
reg_offset
+=
8
;
int_reg_save_area_size
+=
8
;
}
/* Now save any other used integer registers required to be saved. */
...
...
@@ -1368,6 +1370,7 @@ output_prolog (file, size)
fprintf
(
file
,
"
\t
stq $%d,%d($%d)
\n
"
,
i
,
reg_offset
,
reg_offset_base_reg
);
reg_offset
+=
8
;
int_reg_save_area_size
+=
8
;
}
/* Print the register mask and do floating-point saves. */
...
...
@@ -1390,7 +1393,8 @@ output_prolog (file, size)
/* Print the floating-point mask, if we've saved any fp register. */
if
(
reg_mask
)
fprintf
(
file
,
"
\t
.fmask 0x%x,%d
\n
"
,
reg_mask
,
actual_start_reg_offset
);
fprintf
(
file
,
"
\t
.fmask 0x%x,%d
\n
"
,
reg_mask
,
actual_start_reg_offset
-
frame_size
+
int_reg_save_area_size
);
/* If we need a frame pointer, set it from the stack pointer. Note that
this must always be the last instruction in the prologue. */
...
...
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