]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix merge of: amdgcn: fix up offload debug linking with LLVM 13
authorTobias Burnus <tobias@codesourcery.com>
Mon, 18 Oct 2021 13:07:19 +0000 (15:07 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 18 Oct 2021 13:07:19 +0000 (15:07 +0200)
For some odd reasons (probably wrong merge conflict resolution),
one of the changes to config/gcn/mkoffload.c of
commit r11-9168-gcc84160c5f470b23b7aed4633f887df113b2675d
disappeared when merging origin/releases/gcc-11 into OG11.
Thus, apply I (re)applied it manually:

gcc/
* config/gcn/mkoffload.c (main): Just let the attribute flags
pass through.

gcc/config/gcn/mkoffload.c

index 8d2ff4bc1292fbb64fe02538106029ea3f922ed8..2b8350e16538d5163526fa1e5efa1fcfd7816fad 100644 (file)
@@ -1008,12 +1008,6 @@ main (int argc, char **argv)
   obstack_ptr_grow (&cc_argv_obstack, "-xlto");
   if (fopenmp)
     obstack_ptr_grow (&cc_argv_obstack, "-mgomp");
-  obstack_ptr_grow (&cc_argv_obstack,
-                   (elf_flags & EF_AMDGPU_XNACK
-                    ? "-mxnack" : "-mno-xnack"));
-  obstack_ptr_grow (&cc_argv_obstack,
-                   (elf_flags & EF_AMDGPU_SRAM_ECC
-                    ? "-msram-ecc=on" : "-msram-ecc=off"));
 
   for (int ix = 1; ix != argc; ix++)
     {