Let nvptx-as figure out the target architecture [PR97348]
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 13 Jan 2021 08:04:47 +0000 (09:04 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 12 Apr 2022 17:02:41 +0000 (19:02 +0200)
... now that it has been enhanced to do so.

This is a follow-up to PR97348 commit 383400a6078d75bbfa1216c9af2c37f7e88740c9
"[nvptx] Set -misa=sm_35 by default".

gcc/
PR target/97348
* config/nvptx/nvptx.h (ASM_SPEC): Don't set.
* config/nvptx/nvptx.opt (misa): Adjust comment.

gcc/config/nvptx/nvptx.h
gcc/config/nvptx/nvptx.opt

index c14e0f7..ed72c25 100644 (file)
 
 #define STARTFILE_SPEC "%{mmainkernel:crt0.o}"
 
-/* Default needs to be in sync with default for misa in nvptx.opt.
-   We add a default here to work around a hard-coded sm_30 default in
-   nvptx-as.  */
-#define ASM_SPEC "%{misa=*:-m %*; :-m sm_35}"
-
 #define TARGET_CPU_CPP_BUILTINS() nvptx_cpu_cpp_builtins ()
 
 /* Avoid the default in ../../gcc.cc, which adds "-pthread", which is not
index 55a1057..c5a5668 100644 (file)
@@ -52,7 +52,6 @@ mgomp
 Target Mask(GOMP)
 Generate code for OpenMP offloading: enables -msoft-stack and -muniform-simt.
 
-; Default needs to be in sync with default in ASM_SPEC in nvptx.h.
 misa=
 Target RejectNegative ToLower Joined Enum(ptx_isa) Var(ptx_isa_option) Init(PTX_ISA_SM30)
 Specify the PTX ISA target architecture to use.