diff mbox series

aarch64 - Set the mode for the unspec in speculation_tracker insn.

Message ID 98dfc446-2ee4-bf08-a722-20460d825a26@arm.com
State New
Headers show
Series aarch64 - Set the mode for the unspec in speculation_tracker insn. | expand

Commit Message

Richard Earnshaw (lists) Nov. 6, 2018, 5:20 p.m. UTC
The speculation tracker insn in my recent patch set for CVE-2017-5753
was missing a mode on the UNSPEC.  Although this didn't break the
build, it did cause an unnecessary warning from the MD parsing
mechanism that I missed at the time.  It's a trivial fix, as follows:

        * config/aarch64/aarch64.md (speculation_tracker): Set the mode for
        the UNSPEC.


Committed to trunk.
diff mbox series

Patch

diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
index ada623bb6f1..82af4d47f78 100644
--- a/gcc/config/aarch64/aarch64.md
+++ b/gcc/config/aarch64/aarch64.md
@@ -6687,7 +6687,7 @@  (define_expand "doloop_end"
 ;; SPECULATION_TRACKER_REGNUM is reserved for this purpose when necessary.
 (define_insn "speculation_tracker"
   [(set (reg:DI SPECULATION_TRACKER_REGNUM)
-	(unspec [(reg:DI SPECULATION_TRACKER_REGNUM) (match_operand 0)]
+	(unspec:DI [(reg:DI SPECULATION_TRACKER_REGNUM) (match_operand 0)]
 	 UNSPEC_SPECULATION_TRACKER))]
   ""
   {