aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2008-05-23 20:51:18 -0400
committerDJ Delorie <dj@gcc.gnu.org>2008-05-23 20:51:18 -0400
commitc9db440dd71fc73344da315e8a9964fc6752ce8c (patch)
tree3099bf4e5e827a6e9afc602fa1d5dfea3c81e50d /gcc
parent80b093dfb8c8b11e30be7468d31f5e0b599f10b3 (diff)
downloadgcc-c9db440dd71fc73344da315e8a9964fc6752ce8c.zip
gcc-c9db440dd71fc73344da315e8a9964fc6752ce8c.tar.gz
gcc-c9db440dd71fc73344da315e8a9964fc6752ce8c.tar.bz2
* config/m32c/jump.md (untyped_call): Add.
From-SVN: r135843
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/config/m32c/jump.md20
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cde9086..57bb8be 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2008-05-23 DJ Delorie <dj@redhat.com>
+ * config/m32c/jump.md (untyped_call): Add.
+
* config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
for A24 to PSImode.
(m32c_address_cost): Detail costs for indirect offsets.
diff --git a/gcc/config/m32c/jump.md b/gcc/config/m32c/jump.md
index f5b185b..b9585c5 100644
--- a/gcc/config/m32c/jump.md
+++ b/gcc/config/m32c/jump.md
@@ -111,3 +111,23 @@ switch (which_alternative) {
}"
[(set_attr "flags" "x,x,x")]
)
+
+(define_expand "untyped_call"
+ [(parallel [(call (match_operand 0 "" "")
+ (const_int 0))
+ (match_operand 1 "" "")
+ (match_operand 2 "" "")])]
+ ""
+ "
+{
+ int i;
+
+ emit_call_insn (gen_call (operands[0], const0_rtx, const0_rtx));
+
+ for (i = 0; i < XVECLEN (operands[2], 0); i++)
+ {
+ rtx set = XVECEXP (operands[2], 0, i);
+ emit_move_insn (SET_DEST (set), SET_SRC (set));
+ }
+ DONE;
+}")