This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][ARM] Add mode to probe_stack set operands
- From: Kyrill Tkachov <kyrylo dot tkachov at foss dot arm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>
- Date: Tue, 03 May 2016 12:27:42 +0100
- Subject: [PATCH][ARM] Add mode to probe_stack set operands
- Authentication-results: sourceware.org; auth=none
Hi all,
When building the arm backend genrecog complains that the probe_stack set expression
doesn't specify any modes. This patch adds the SI mode annotation and fixes the warning
Bootstrapped and tested on arm-none-linux-gnueabihf.
Ok for trunk?
Thanks,
Kyrill
2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.md (probe_stack): Add modes to set source
and destination.
diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
index 68de70f05ce29f40849297e160d890f033c34487..0d491f7ea41e4fb5fb58bbb3047294abda541a73 100644
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -8091,8 +8091,8 @@ (define_insn "blockage"
)
(define_insn "probe_stack"
- [(set (match_operand 0 "memory_operand" "=m")
- (unspec [(const_int 0)] UNSPEC_PROBE_STACK))]
+ [(set (match_operand:SI 0 "memory_operand" "=m")
+ (unspec:SI [(const_int 0)] UNSPEC_PROBE_STACK))]
"TARGET_32BIT"
"str%?\\tr0, %0"
[(set_attr "type" "store1")