From 03b69e5c334e8bb17306961e81b4410ba7408774 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 13 Sep 2022 17:26:33 +0200 Subject: [PATCH 1/2] nvptx: Define (dummy) 'TARGET_PTX_6_0' 'TARGET_PTX_*' not applicable before GCC 12, but makes it easier to cherry-pick patches. gcc/ * config/nvptx/nvptx.h (TARGET_PTX_6_0): '#define' to 'false'. --- gcc/config/nvptx/nvptx.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index 6ebcc760771..ca1aa11d852 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -95,6 +95,9 @@ #define TARGET_SM35 (ptx_isa_option >= PTX_ISA_SM35) +/* 'TARGET_PTX_*' not applicable before GCC 12. */ +#define TARGET_PTX_6_0 false + /* Registers. Since ptx is a virtual target, we just define a few hard registers for special purposes and leave pseudos unallocated. We have to have some available hard registers, to keep gcc setup -- 2.35.1