From 165255c7a562e04e3be89eb1c87b4ac3c5248d77 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Wed, 29 Jan 2020 23:45:55 +0100 Subject: [PATCH] =?utf8?q?GCN=20=E2=80=93=20call=20assembler=20with=20-mat?= =?utf8?q?tr=3D-code-object-v3=20(PR93409)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 6 ++++++ gcc/config/gcn/gcn-hsa.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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) -- 2.30.2