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
5e32727c
Commit
5e32727c
authored
Aug 02, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(hppa_builtin_saveregs): f -fcheck-memory-usage, set rights of saved
registers. From-SVN: r14623
parent
4e264c3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
gcc/config/pa/pa.c
+12
-7
No files found.
gcc/config/pa/pa.c
View file @
5e32727c
/* Subroutines for insn-output.c for HPPA.
Copyright (C) 1992,
1993, 1994, 1995, 1996
Free Software Foundation, Inc.
Copyright (C) 1992,
, 1994, 95, 96, 1997
Free Software Foundation, Inc.
Contributed by Tim Moore (moore@cs.utah.edu), based on sparc.c
This file is part of GNU CC.
...
...
@@ -4269,7 +4269,7 @@ struct rtx_def *
hppa_builtin_saveregs
(
arglist
)
tree
arglist
;
{
rtx
offset
;
rtx
offset
,
dest
;
tree
fntype
=
TREE_TYPE
(
current_function_decl
);
int
argadj
=
((
!
(
TYPE_ARG_TYPES
(
fntype
)
!=
0
&&
(
TREE_VALUE
(
tree_last
(
TYPE_ARG_TYPES
(
fntype
)))
...
...
@@ -4282,11 +4282,16 @@ hppa_builtin_saveregs (arglist)
offset
=
current_function_arg_offset_rtx
;
/* Store general registers on the stack. */
move_block_from_reg
(
23
,
gen_rtx
(
MEM
,
BLKmode
,
plus_constant
(
current_function_internal_arg_pointer
,
-
16
)),
4
,
4
*
UNITS_PER_WORD
);
dest
=
gen_rtx
(
MEM
,
BLKmode
,
plus_constant
(
current_function_internal_arg_pointer
,
-
16
));
move_block_from_reg
(
23
,
dest
,
4
,
4
*
UNITS_PER_WORD
);
if
(
flag_check_memory_usage
)
emit_library_call
(
chkr_set_right_libfunc
,
1
,
VOIDmode
,
3
,
dest
,
ptr_mode
,
GEN_INT
(
4
*
UNITS_PER_WORD
),
TYPE_MODE
(
sizetype
),
GEN_INT
(
MEMORY_USE_RW
),
QImode
);
return
copy_to_reg
(
expand_binop
(
Pmode
,
add_optab
,
current_function_internal_arg_pointer
,
offset
,
0
,
0
,
OPTAB_LIB_WIDEN
));
...
...
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