From: Tobias Burnus Date: Wed, 29 Jan 2020 22:45:55 +0000 (+0100) Subject: GCN – call assembler with -mattr=-code-object-v3 (PR93409) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=165255c7a562e04e3be89eb1c87b4ac3c5248d77;p=gcc.git 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 --git a/gcc/ChangeLog b/gcc/ChangeLog index 567dff632f5..c9fbdacd971 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-01-29 Tobias Burnus + + 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 PR tree-optimization/89689 diff --git a/gcc/config/gcn/gcn-hsa.h b/gcc/config/gcn/gcn-hsa.h index cefe67217e7..d6523cf1247 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= unless the user (or mkoffload)