GCN – call assembler with -mattr=-code-object-v3 (PR93409)
authorTobias Burnus <tobias@codesourcery.com>
Wed, 29 Jan 2020 22:45:55 +0000 (23:45 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 29 Jan 2020 22:45:55 +0000 (23:45 +0100)
        PR bootstrap/93409
        * config/gcn/gcn-hsa.h (ASM_SPEC): Add -mattr=-code-object-v3 as
        LLVM's assembler changed the default in version 9.

gcc/ChangeLog
gcc/config/gcn/gcn-hsa.h

index 567dff6..c9fbdac 100644 (file)
@@ -1,3 +1,9 @@
+2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
+
+       PR bootstrap/93409
+       * config/gcn/gcn-hsa.h (ASM_SPEC): Add -mattr=-code-object-v3 as
+       LLVM's assembler changed the default in version 9.
+
 2020-01-24  Jeff Law  <law@redhat.com>
 
        PR tree-optimization/89689
index cefe672..d6523cf 100644 (file)
@@ -76,7 +76,7 @@ extern unsigned int gcn_local_sym_hash (const char *name);
 #define GOMP_SELF_SPECS ""
 
 /* Use LLVM assembler and linker options.  */
-#define ASM_SPEC  "-triple=amdgcn--amdhsa "         \
+#define ASM_SPEC  "-triple=amdgcn--amdhsa -mattr=-code-object-v3 "  \
                  "%:last_arg(%{march=*:-mcpu=%*}) " \
                  "-filetype=obj"
 /* Add -mlocal-symbol-id=<source-file-basename> unless the user (or mkoffload)