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
e72f998d
Commit
e72f998d
authored
27 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(clipper_builtin_saveregs): If -fcheck-memory-usage, set rights of
saved registers. From-SVN: r14621
parent
5b838011
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
gcc/config/clipper/clipper.c
+23
-3
No files found.
gcc/config/clipper/clipper.c
View file @
e72f998d
/* Subroutines for insn-output.c for Clipper
Copyright (C) 1987, 1988, 1991 Free Software Foundation, Inc.
Copyright (C) 1987, 1988, 1991, 1997 Free Software Foundation, Inc.
Contributed by Holger Teutsch (holger@hotbso.rhein-main.de)
This file is part of GNU CC.
...
...
@@ -438,10 +437,31 @@ clipper_builtin_saveregs (arglist)
gen_rtx
(
CONST_INT
,
Pmode
,
16
))),
scratch
);
if
(
flag_check_memory_usage
)
{
emit_library_call
(
chkr_set_right_libfunc
,
1
,
VOIDmode
,
3
,
addr
,
ptr_mode
,
GEN_INT
(
5
*
GET_MODE_SIZE
(
SImode
)),
TYPE_MODE
(
sizetype
),
GEN_INT
(
MEMORY_USE_RW
),
QImode
);
emit_library_call
(
chkr_set_right_libfunc
,
1
,
VOIDmode
,
3
,
f0_addr
,
ptr_mode
,
GEN_INT
(
GET_MODE_SIZE
(
DFmode
)),
TYPE_MODE
(
sizetype
),
GEN_INT
(
MEMORY_USE_RW
),
QImode
);
emit_library_call
(
chkr_set_right_libfunc
,
1
,
VOIDmode
,
3
,
f1_addr
,
ptr_mode
,
GEN_INT
(
GET_MODE_SIZE
(
DFmode
)),
TYPE_MODE
(
sizetype
),
GEN_INT
(
MEMORY_USE_RW
),
QImode
);
emit_library_call
(
chkr_set_right_libfunc
,
1
,
VOIDmode
,
3
,
r0_addr
,
ptr_mode
,
GEN_INT
(
GET_MODE_SIZE
(
SImode
)),
TYPE_MODE
(
sizetype
),
GEN_INT
(
MEMORY_USE_RW
),
QImode
);
emit_library_call
(
chkr_set_right_libfunc
,
1
,
VOIDmode
,
3
,
r1_addr
,
ptr_mode
,
GEN_INT
(
GET_MODE_SIZE
(
SImode
)),
TYPE_MODE
(
sizetype
),
GEN_INT
(
MEMORY_USE_RW
),
QImode
);
}
/* 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
optimizing. */
return
XEXP
(
block
,
0
);
}
...
...
This diff is collapsed.
Click to expand it.
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