This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Commit: RX: Add return pattern
- From: Nick Clifton <nickc at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Jan 2012 11:39:09 +0000
- Subject: Commit: RX: Add return pattern
Hi Guys,
I am checking in the patch below to fix a problem building the RX
port. Targets that define the "simple_return" pattern must also
define a "return" pattern. Otherwise gcc/function.c will fail to
build.
Cheers
Nick
gcc/ChangeLog
2012-01-11 Nick Clifton <nickc@redhat.com>
* config/rx/rx.md (return): Define pattern.
Index: gcc/config/rx/rx.md
===================================================================
--- gcc/config/rx/rx.md (revision 183092)
+++ gcc/config/rx/rx.md (working copy)
@@ -340,6 +340,12 @@
(set_attr "length" "2")]
)
+(define_expand "return"
+ [(return)]
+ ""
+ "rx_expand_epilogue (false); DONE;"
+)
+
(define_insn "simple_return"
[(return)]
""