diff options
author | Doug Evans <dje@sebabeach.org> | 2003-06-13 16:57:26 +0000 |
---|---|---|
committer | Doug Evans <devans@gcc.gnu.org> | 2003-06-13 16:57:26 +0000 |
commit | d88e80e622609f3c4be7b852222d5daa7afca7c9 (patch) | |
tree | c79e5bf367177461afc3a2d513f54bd112425c0a /gcc/config/m32r/m32r.h | |
parent | 4581c6785660dd5d9fef416d15c9ad39051951d9 (diff) | |
download | gcc-d88e80e622609f3c4be7b852222d5daa7afca7c9.zip gcc-d88e80e622609f3c4be7b852222d5daa7afca7c9.tar.gz gcc-d88e80e622609f3c4be7b852222d5daa7afca7c9.tar.bz2 |
m32r-protos.h (m32r_pass_by_reference): Declare.
* config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
* config/m32r/m32r.c (m32r_pass_by_reference): New fn.
(m32r_va_arg): Use it.
* config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
(RETURN_IN_MEMORY): Ditto.
Co-Authored-By: Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
From-SVN: r67906
Diffstat (limited to 'gcc/config/m32r/m32r.h')
-rw-r--r-- | gcc/config/m32r/m32r.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h index 36bd206..13205ae 100644 --- a/gcc/config/m32r/m32r.h +++ b/gcc/config/m32r/m32r.h @@ -1134,7 +1134,7 @@ M32R_STACK_ALIGN (current_function_outgoing_args_size) appropriate for passing a pointer to that type. */ /* All arguments greater than 8 bytes are passed this way. */ #define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED) \ - ((TYPE) && int_size_in_bytes (TYPE) > 8) + ((TYPE) && m32r_pass_by_reference (TYPE)) /* Update the data in CUM to advance over an argument of mode MODE and data type TYPE. @@ -1210,8 +1210,7 @@ M32R_STACK_ALIGN (current_function_outgoing_args_size) to return the function value in memory, just as large structures are always returned. Here TYPE will be a C expression of type `tree', representing the data type of the value. */ -#define RETURN_IN_MEMORY(TYPE) \ -(int_size_in_bytes (TYPE) > 8) +#define RETURN_IN_MEMORY(TYPE) m32r_pass_by_reference (TYPE) /* Tell GCC to use RETURN_IN_MEMORY. */ #define DEFAULT_PCC_STRUCT_RETURN 0 |