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
9b4f640b
Commit
9b4f640b
authored
Apr 06, 2000
by
J"orn Rennecke
Committed by
Joern Rennecke
Apr 06, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
From-SVN: r32977
parent
2f6f4b96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
+23
-1
gcc/ChangeLog
+4
-0
gcc/config/sh/sh.h
+19
-1
No files found.
gcc/ChangeLog
View file @
9b4f640b
Thu
Apr
6
20
:
39
:
26
2000
J
"orn Rennecke <amylaar@cygnus.co.uk>
* sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
Thu Apr 6 19:34:08 2000 J"
orn
Rennecke
<
amylaar
@cygnus
.
co
.
uk
>
*
config
/
sh
/
lib1funcs
.
asm
(
___udivsi3_i4
)
:
...
...
gcc/config/sh/sh.h
View file @
9b4f640b
...
...
@@ -592,7 +592,25 @@ do { \
where the address is passed. If it returns 0, the address is
passed as an "invisible" first argument. */
/*#define STRUCT_VALUE ((rtx)0)*/
/* The Hitachi calling convention doesn't quite fit into this scheme since
the address is passed like an invisible argument, but one that is always
passed in memory. We approximate this by saying where the pointer is;
however, this will put any actual arguments that are passed in memory
in the wrong place.
If we wanted to implement this exactly, we'd need a STRUCT_VALUE of 0,
an extra field in CUMULATIVE_ARGS, initialize it in INIT_CUMULATIVE_ARGS,
and hack FUNCTION_VALUE / FUNCTION_ARG_ADVANCE to look directly at
DECL_RESULT of the current function in conjunction with CUM to determine
if the argument in question it is a struct value pointer, and if it is,
pass it in memory. */
#define STRUCT_VALUE \
(TARGET_HITACHI \
? gen_rtx_MEM (Pmode, arg_pointer_rtx) \
: gen_rtx_REG (Pmode, STRUCT_VALUE_REGNUM))
#define RETURN_IN_MEMORY(TYPE) \
(TYPE_MODE (TYPE) == BLKmode \
|| TARGET_HITACHI && TREE_CODE (TYPE) == RECORD_TYPE)
/* Don't default to pcc-struct-return, because we have already specified
exactly how to return structures in the RETURN_IN_MEMORY macro. */
...
...
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