aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorChris Packham <chris.packham@alliedtelesis.co.nz>2019-05-10 21:00:25 +1200
committerKees Cook <keescook@chromium.org>2019-05-10 15:35:01 -0700
commit259799ea5a9aa099a267f3b99e1f7078bbaf5c5e (patch)
tree38e228a0d6128397c59b6c15f6b45d4aa1cbdc84 /scripts/gcc-plugins/gcc-common.h
parentLinux 5.1 (diff)
downloadlinux-dev-259799ea5a9aa099a267f3b99e1f7078bbaf5c5e.tar.xz
linux-dev-259799ea5a9aa099a267f3b99e1f7078bbaf5c5e.zip
gcc-plugins: arm_ssp_per_task_plugin: Fix for older GCC < 6
Use gen_rtx_set instead of gen_rtx_SET. The former is a wrapper macro that handles the difference between GCC versions implementing the latter. This fixes the following error on my system with g++ 5.4.0 as the host compiler HOSTCXX -fPIC scripts/gcc-plugins/arm_ssp_per_task_plugin.o scripts/gcc-plugins/arm_ssp_per_task_plugin.c:42:14: error: macro "gen_rtx_SET" requires 3 arguments, but only 2 given mask)), ^ scripts/gcc-plugins/arm_ssp_per_task_plugin.c: In function ‘unsigned int arm_pertask_ssp_rtl_execute()’: scripts/gcc-plugins/arm_ssp_per_task_plugin.c:39:20: error: ‘gen_rtx_SET’ was not declared in this scope emit_insn_before(gen_rtx_SET Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Fixes: 189af4657186 ("ARM: smp: add support for per-task stack canaries") Cc: stable@vger.kernel.org Tested-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions