diff options
author | Anatoly Sokolov <aesok@post.ru> | 2009-10-22 23:46:26 +0400 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2009-10-22 23:46:26 +0400 |
commit | 2a31793e324e29c237dc9e46064280aa626374ad (patch) | |
tree | 7115e883ca22b8fd5c248329b20c3d08a3703a2a /gcc/config/m32c/m32c.h | |
parent | 062eee1eb05a3387cebe8c9f9a6ecd359b15dec5 (diff) | |
download | gcc-2a31793e324e29c237dc9e46064280aa626374ad.zip gcc-2a31793e324e29c237dc9e46064280aa626374ad.tar.gz gcc-2a31793e324e29c237dc9e46064280aa626374ad.tar.bz2 |
m32c.c (m32c_function_value_regno_p): New function.
* config/m32c/m32c.c (m32c_function_value_regno_p): New function.
(m32c_function_value): Make static, add new 'outgoing' argument.
(m32c_libcall_value): Make static, add new 'fun' argument.
(TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
* config/m32c/m32c.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
(FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
* config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
(m32c_function_value, m32c_libcall_value): Delete declaration.
From-SVN: r153473
Diffstat (limited to 'gcc/config/m32c/m32c.h')
-rw-r--r-- | gcc/config/m32c/m32c.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/config/m32c/m32c.h b/gcc/config/m32c/m32c.h index 0f12158..c0914d3 100644 --- a/gcc/config/m32c/m32c.h +++ b/gcc/config/m32c/m32c.h @@ -533,10 +533,7 @@ typedef struct m32c_cumulative_args /* How Scalar Function Values Are Returned */ -#define FUNCTION_VALUE(VT,F) m32c_function_value (VT, F) -#define LIBCALL_VALUE(MODE) m32c_libcall_value (MODE) - -#define FUNCTION_VALUE_REGNO_P(r) ((r) == R0_REGNO || (r) == MEM0_REGNO) +#define FUNCTION_VALUE_REGNO_P(r) m32c_function_value_regno_p (r) /* How Large Values Are Returned */ |