aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Hayes <m.hayes@elec.canterbury.ac.nz>2000-04-02 09:19:17 +0000
committerMichael Hayes <m.hayes@gcc.gnu.org>2000-04-02 09:19:17 +0000
commit49d1b8712898e27fde111afc2310e0d43768e8d7 (patch)
tree842050419c4322dd07aea4745459fc4d522d7451 /gcc
parent7a53764d8a86a57793f78657accea9564e9790a5 (diff)
downloadgcc-49d1b8712898e27fde111afc2310e0d43768e8d7.zip
gcc-49d1b8712898e27fde111afc2310e0d43768e8d7.tar.gz
gcc-49d1b8712898e27fde111afc2310e0d43768e8d7.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/c4x/c4x.c8
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9f8c235..83c2d29 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
* cppexp.c: New FINISHED dummy token. Combine operator initial
diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c
index 3ee934c..9972f47 100644
--- a/gcc/config/c4x/c4x.c
+++ b/gcc/config/c4x/c4x.c
@@ -603,6 +603,11 @@ c4x_function_arg (cum, mode, type, named)
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
&& named
&& type
@@ -742,7 +747,8 @@ c4x_assembler_function_p ()
tree type;
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);
}