c4x.c (c4x_function_arg): Check for void_type_node before checking MUST_PASS_IN_STACK.

* config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
 	before checking MUST_PASS_IN_STACK.

From-SVN: r32865
This commit is contained in:
Michael Hayes 2000-04-02 09:19:17 +00:00 committed by Michael Hayes
parent 7a53764d8a
commit 49d1b87128
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
before checking MUST_PASS_IN_STACK.
2000-04-02 Neil Booth <NeilB@earthling.net> 2000-04-02 Neil Booth <NeilB@earthling.net>
* cppexp.c: New FINISHED dummy token. Combine operator initial * cppexp.c: New FINISHED dummy token. Combine operator initial

View File

@ -603,6 +603,11 @@ c4x_function_arg (cum, mode, type, named)
cum->init = 1; cum->init = 1;
} }
/* This marks the last argument. We don't need to pass this through
to the call insn. */
if (type == void_type_node)
return 0;
if (! TARGET_MEMPARM if (! TARGET_MEMPARM
&& named && named
&& type && type
@ -742,7 +747,8 @@ c4x_assembler_function_p ()
tree type; tree type;
type = TREE_TYPE (current_function_decl); type = TREE_TYPE (current_function_decl);
return lookup_attribute ("assembler", TYPE_ATTRIBUTES (type)) != NULL; return (lookup_attribute ("assembler", TYPE_ATTRIBUTES (type)) != NULL)
|| (lookup_attribute ("naked", TYPE_ATTRIBUTES (type)) != NULL);
} }