diff options
author | Hans-Peter Nilsson <hp@bitrange.com> | 2002-11-10 07:32:43 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2002-11-10 07:32:43 +0000 |
commit | e9986d3ae28c561c4de3eaeb8957c2b6122b6f91 (patch) | |
tree | 2734b3c9a9c35052d56720e7e09a983ce9c830c8 | |
parent | 581d94049b9abee40dd4299f677b522233634527 (diff) | |
download | gcc-e9986d3ae28c561c4de3eaeb8957c2b6122b6f91.zip gcc-e9986d3ae28c561c4de3eaeb8957c2b6122b6f91.tar.gz gcc-e9986d3ae28c561c4de3eaeb8957c2b6122b6f91.tar.bz2 |
mmix.h (FUNCTION_ARG_CALLEE_COPIES): Define the same as FUNCTION_ARG_PASS_BY_REFERENCE.
* config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Define the same
as FUNCTION_ARG_PASS_BY_REFERENCE.
From-SVN: r58970
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mmix/mmix.h | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e07c1c0..de77168 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-11-10 Hans-Peter Nilsson <hp@bitrange.com> + + * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Define the same + as FUNCTION_ARG_PASS_BY_REFERENCE. + 2002-11-09 John David Anglin <dave@hiauly1.hia.nrc.ca> * pa.h (STARTING_FRAME_OFFSET): Change offset for TARGET_64BIT to 16. diff --git a/gcc/config/mmix/mmix.h b/gcc/config/mmix/mmix.h index cfc6d93..a46a551 100644 --- a/gcc/config/mmix/mmix.h +++ b/gcc/config/mmix/mmix.h @@ -735,8 +735,13 @@ enum reg_class /* This *sounds* good, but does not seem to be implemented correctly to be a win; at least it wasn't in 2.7.2. FIXME: Check and perhaps - replace with a big comment. */ -#define FUNCTION_ARG_CALLEE_COPIES(CUM, MODE, TYPE, NAMED) 1 + replace with a big comment. + The definition needs to match or be a subset of + FUNCTION_ARG_PASS_BY_REFERENCE, since not all callers check that before + usage. Watch lots of C++ test-cases fail if set to 1, for example + g++.dg/init/byval1.C. */ +#define FUNCTION_ARG_CALLEE_COPIES(CUM, MODE, TYPE, NAMED) \ + mmix_function_arg_pass_by_reference (&(CUM), MODE, TYPE, NAMED) typedef struct { int regs; int lib; } CUMULATIVE_ARGS; |