From 996bea89df18890e6dd0bdbbf5a7f1d4fd6852ad Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Tue, 6 Nov 2018 17:18:37 +0000 Subject: [PATCH] aarch64 - Set the mode for the unspec in speculation_tracker insn. 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. From-SVN: r265849 --- gcc/ChangeLog | 7 ++++++- gcc/config/aarch64/aarch64.md | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6807a68..98ecacf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,9 +1,14 @@ +2018-11-06 Richard Earnshaw + + * config/aarch64/aarch64.md (speculation_tracker): Set the mode for + the UNSPEC. + 2018-11-06 Richard Biener PR tree-optimization/86850 * vec.h (vec::splice): Check src.length () instead of src.m_vec. - + 2018-11-06 Jan Hubicka * tree.c (fld_simplified_type_name): Break out form ... diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index ada623b..82af4d4 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -6687,7 +6687,7 @@ ;; 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))] "" { -- 2.7.4