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
73fef4fe
Commit
73fef4fe
authored
Jan 19, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(SETUP_INCOMING_VARARGS): Delete duplicate definition.
From-SVN: r13536
parent
9b80d951
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
62 deletions
+27
-62
gcc/config/alpha/vms.h
+27
-62
No files found.
gcc/config/alpha/vms.h
View file @
73fef4fe
...
@@ -155,38 +155,39 @@ do { \
...
@@ -155,38 +155,39 @@ do { \
= vmskrunch (XSTR (XEXP (DECL_RTL (DECL), 0), 0)); \
= vmskrunch (XSTR (XEXP (DECL_RTL (DECL), 0), 0)); \
} while (0)
} while (0)
/* Don't use BLKmode if VAX floats are used. */
/* Perform any needed actions needed for a function that is receiving a
variable number of arguments.
CUM is as for INIT_CUMULATIVE_ARGS.
MODE and TYPE are the mode and type of the current parameter.
PRETEND_SIZE is a variable that should be set to the amount of stack
that must be pushed by the prolog to pretend that our caller pushed
it.
Normally, this macro will push all remaining incoming registers on the
stack and set PRETEND_SIZE to the length of the registers pushed.
For VMS, we allocate space for all 6 arg registers plus a count.
However, if NO registers need to be saved, don't allocate any space.
This is not only because we won't need the space, but because AP includes
the current_pretend_args_size and we don't want to mess up any
ap-relative addresses already made. */
#undef SETUP_INCOMING_VARARGS
#undef SETUP_INCOMING_VARARGS
#define SETUP_INCOMING_VARARGS(CUM,MODE,TYPE,PRETEND_SIZE,NO_RTL) \
#define SETUP_INCOMING_VARARGS(CUM,MODE,TYPE,PRETEND_SIZE,NO_RTL) \
{ if ((CUM
& 0xff) < 6)
\
{ if ((CUM
) < 6)
\
{ \
{ \
if (! (NO_RTL)) \
if (! (NO_RTL)) \
{ \
{ \
move_block_from_reg \
emit_move_insn (gen_rtx (REG, DImode, 1), \
(16 + (CUM & 0xff), \
virtual_incoming_args_rtx); \
gen_rtx (MEM, BLKmode, \
emit_insn (gen_arg_home ()); \
plus_constant (virtual_incoming_args_rtx, \
((CUM & 0xff) + 6)* UNITS_PER_WORD)),\
6 - (CUM & 0xff), (6 - (CUM & 0xff)) * UNITS_PER_WORD); \
if (!TARGET_FLOAT_VAX || !TARGET_FPREGS) \
move_block_from_reg \
(16 + (TARGET_FPREGS ? 32 : 0) + (CUM & 0xff), \
gen_rtx (MEM, BLKmode, \
plus_constant (virtual_incoming_args_rtx, \
(CUM & 0xff) * UNITS_PER_WORD)),\
6 - (CUM & 0xff), (6 - (CUM & 0xff)) * UNITS_PER_WORD); \
else \
{ \
int i; \
for (i = (CUM & 0xff); i < 6; i++) \
emit_move_insn ( \
gen_rtx (MEM, DFmode, \
plus_constant (virtual_incoming_args_rtx, \
i * UNITS_PER_WORD)), \
gen_rtx (REG, DFmode, 48+i)); \
} \
} \
} \
PRETEND_SIZE = 12 * UNITS_PER_WORD; \
\
PRETEND_SIZE = 7 * UNITS_PER_WORD; \
} \
} \
}
}
...
@@ -277,42 +278,6 @@ void *function_arg ();
...
@@ -277,42 +278,6 @@ void *function_arg ();
{ ASM_OUTPUT_ALIGN (FILE, 3); ASM_OUTPUT_INTERNAL_LABEL (FILE, PREFIX, NUM); }
{ ASM_OUTPUT_ALIGN (FILE, 3); ASM_OUTPUT_INTERNAL_LABEL (FILE, PREFIX, NUM); }
#define NO_MD_PROTOTYPES
#define NO_MD_PROTOTYPES
/* Perform any needed actions needed for a function that is receiving a
variable number of arguments.
CUM is as above.
MODE and TYPE are the mode and type of the current parameter.
PRETEND_SIZE is a variable that should be set to the amount of stack
that must be pushed by the prolog to pretend that our caller pushed
it.
Normally, this macro will push all remaining incoming registers on the
stack and set PRETEND_SIZE to the length of the registers pushed.
For VMS, we allocate space for all 6 arg registers plus a count.
However, if NO registers need to be saved, don't allocate any space.
This is not only because we won't need the space, but because AP includes
the current_pretend_args_size and we don't want to mess up any
ap-relative addresses already made. */
#undef SETUP_INCOMING_VARARGS
#define SETUP_INCOMING_VARARGS(CUM,MODE,TYPE,PRETEND_SIZE,NO_RTL) \
{ if ((CUM) < 6) \
{ \
if (! (NO_RTL)) \
{ \
emit_move_insn (gen_rtx (REG, DImode, 1), \
virtual_incoming_args_rtx); \
emit_insn (gen_arg_home ()); \
} \
\
PRETEND_SIZE = 7 * UNITS_PER_WORD; \
} \
}
/* Output assembler code for a block containing the constant parts
/* Output assembler code for a block containing the constant parts
of a trampoline, leaving space for the variable parts.
of a trampoline, leaving space for the variable parts.
...
...
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