diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-22 23:09:29 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-22 23:09:29 +0000 |
commit | 9cfa543ceaf064aba326863c087fd3e81585c884 (patch) | |
tree | cd5b3be82233e7e4fa30070ce38808522b8e6bb3 | |
parent | 1acb7bafee60357454b4300c0a3ec1c99bd8da1e (diff) | |
download | gcc-9cfa543ceaf064aba326863c087fd3e81585c884.tar.gz |
* config/alpha/alpha.c (function_arg): Check for void_type_node
before using MUST_PASS_IN_STACK.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32692 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.c | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9fe40d10a47..4a08c3258c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-21 Richard Henderson <rth@cygnus.com> + + * config/alpha/alpha.c (function_arg): Check for void_type_node + before using MUST_PASS_IN_STACK. + 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr> * regmove.c (combine_stack_adjustments_for_block): Check that diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 601c1d2f5df..7c53f52932b 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -3697,10 +3697,15 @@ function_arg(cum, mode, type, named) { int basereg; - if (cum >= 6 || MUST_PASS_IN_STACK (mode, type)) + if (cum >= 6) return NULL_RTX; - if (FUNCTION_ARG_PASS_BY_REFERENCE (cum, mode, type, named)) + /* VOID is passed as a special flag for "last argument". */ + if (type == void_type_node) + basereg = 16; + else if (MUST_PASS_IN_STACK (mode, type)) + return NULL_RTX; + else if (FUNCTION_ARG_PASS_BY_REFERENCE (cum, mode, type, named)) basereg = 16; else if (TARGET_FPREGS && (GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT |