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
4e264c3f
Commit
4e264c3f
authored
Aug 02, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(m88k_builtin_saveregs): If -fcheck-memory-usage, set rights of saved
registers. From-SVN: r14622
parent
e72f998d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
gcc/config/m88k/m88k.c
+23
-8
No files found.
gcc/config/m88k/m88k.c
View file @
4e264c3f
/* Subroutines for insn-output.c for Motorola 88000.
/* Subroutines for insn-output.c for Motorola 88000.
Copyright (C) 1988, 92, 93, 94, 95, 1
996
Free Software Foundation, Inc.
Copyright (C) 1988, 92, 93, 94, 95, 1
6, 1997
Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@mcc.com)
Contributed by Michael Tiemann (tiemann@mcc.com)
Currently maintained by (gcc@dg-rtp.dg.com)
Currently maintained by (gcc@dg-rtp.dg.com)
...
@@ -2585,7 +2585,7 @@ struct rtx_def *
...
@@ -2585,7 +2585,7 @@ struct rtx_def *
m88k_builtin_saveregs
(
arglist
)
m88k_builtin_saveregs
(
arglist
)
tree
arglist
;
tree
arglist
;
{
{
rtx
block
,
addr
,
argsize
;
rtx
block
,
addr
,
argsize
,
dest
;
tree
fntype
=
TREE_TYPE
(
current_function_decl
);
tree
fntype
=
TREE_TYPE
(
current_function_decl
);
int
argadj
=
((
!
(
TYPE_ARG_TYPES
(
fntype
)
!=
0
int
argadj
=
((
!
(
TYPE_ARG_TYPES
(
fntype
)
!=
0
&&
(
TREE_VALUE
(
tree_last
(
TYPE_ARG_TYPES
(
fntype
)))
&&
(
TREE_VALUE
(
tree_last
(
TYPE_ARG_TYPES
(
fntype
)))
...
@@ -2635,12 +2635,27 @@ m88k_builtin_saveregs (arglist)
...
@@ -2635,12 +2635,27 @@ m88k_builtin_saveregs (arglist)
/* Now store the incoming registers. */
/* Now store the incoming registers. */
if
(
fixed
<
8
)
if
(
fixed
<
8
)
move_block_from_reg
{
(
2
+
fixed
,
dest
=
change_address
(
addr
,
Pmode
,
change_address
(
addr
,
Pmode
,
plus_constant
(
XEXP
(
addr
,
0
),
plus_constant
(
XEXP
(
addr
,
0
),
fixed
*
UNITS_PER_WORD
));
fixed
*
UNITS_PER_WORD
)),
move_block_from_reg
(
2
+
fixed
,
dest
,
8
-
fixed
,
8
-
fixed
,
UNITS_PER_WORD
*
(
8
-
fixed
));
UNITS_PER_WORD
*
(
8
-
fixed
));
}
if
(
flag_check_memory_usage
)
{
emit_library_call
(
chkr_set_right_libfunc
,
1
,
VOIDmode
,
3
,
block
,
ptr_mode
,
GEN_INT
(
3
*
UNITS_PER_WORD
),
TYPE_MODE
(
sizetype
),
GEN_INT
(
MEMORY_USE_RW
),
QImode
);
if
(
fixed
<
8
)
emit_library_call
(
chkr_set_right_libfunc
,
1
,
VOIDmode
,
3
,
dest
,
ptr_mode
,
GEN_INT
(
UNITS_PER_WORD
*
(
8
-
fixed
)),
TYPE_MODE
(
sizetype
),
GEN_INT
(
MEMORY_USE_RW
),
QImode
);
}
/* Return the address of the va_list constructor, but don't put it in a
/* Return the address of the va_list constructor, but don't put it in a
register. This fails when not optimizing and produces worse code when
register. This fails when not optimizing and produces worse code when
...
...
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