aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2020-01-29 23:45:55 +0100
committerTobias Burnus <tobias@codesourcery.com>2020-01-29 23:45:55 +0100
commit165255c7a562e04e3be89eb1c87b4ac3c5248d77 (patch)
tree80e0b7a7a5b4e093881d4dbf4b8d3a1b043db0fd /gcc
parent11ffae58473472766960b2f6c59108e331a9eba7 (diff)
downloadgcc-165255c7a562e04e3be89eb1c87b4ac3c5248d77.zip
gcc-165255c7a562e04e3be89eb1c87b4ac3c5248d77.tar.gz
gcc-165255c7a562e04e3be89eb1c87b4ac3c5248d77.tar.bz2
GCN – call assembler with -mattr=-code-object-v3 (PR93409)
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/gcn/gcn-hsa.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 567dff6..c9fbdac 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/gcn/gcn-hsa.h b/gcc/config/gcn/gcn-hsa.h
index cefe672..d6523cf 100644
--- a/gcc/config/gcn/gcn-hsa.h
+++ b/gcc/config/gcn/gcn-hsa.h
@@ -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)