[gcc/devel/c++-coroutines] GCN – call assembler with -mattr=-code-object-v3 (PR93409)
Iain D Sandoe
iains@gcc.gnu.org
Thu Jan 30 21:06:00 GMT 2020
https://gcc.gnu.org/g:165255c7a562e04e3be89eb1c87b4ac3c5248d77
commit 165255c7a562e04e3be89eb1c87b4ac3c5248d77
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Wed Jan 29 23:45:55 2020 +0100
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.
Diff:
---
gcc/ChangeLog | 6 ++++++
gcc/config/gcn/gcn-hsa.h | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
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)
More information about the Gcc-cvs
mailing list