]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nvptx: Define (dummy) 'TARGET_PTX_6_0'
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 13 Sep 2022 15:26:33 +0000 (17:26 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Wed, 14 Sep 2022 10:05:05 +0000 (12:05 +0200)
'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

index 6ebcc760771473834aea8e68a3c5ab9e583c66aa..ca1aa11d8524666bd3e4bb9d9313a601beff07e3 100644 (file)
@@ -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