public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix regressions in libgomp testsuite: set flag_fat_lto_objects for offload
@ 2014-11-14 17:27 Ilya Verbin
  0 siblings, 0 replies; only message in thread
From: Ilya Verbin @ 2014-11-14 17:27 UTC (permalink / raw)
  To: Richard Biener, Jakub Jelinek, gcc; +Cc: H.J. Lu, Kirill Yukhin

Hi,

This patch fixes recent regressions in libgomp testsuite:
https://gcc.gnu.org/ml/gcc-regression/2014-11/msg00343.html
They are reproducible only with ld from trunk, ld 2.24 works fine.

When GCC emits sections with offload IR, it should not emit "__gnu_lto_slim"
symbol, otherwise linker plugin tries to compile LTO IR, which is not present.

Bootstrap and regtesting on x86_64-linux using binutils 20141114 in progress.
OK for trunk when finished?

Thanks,
  -- Ilya


gcc/
	* cgraphunit.c (symbol_table::compile): Set flag_fat_lto_objects
	in case of g->have_offload.


diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 534c613..584a84e 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2178,7 +2178,10 @@ symbol_table::compile (void)
 
   /* Offloading requires LTO infrastructure.  */
   if (!in_lto_p && g->have_offload)
-    flag_generate_lto = 1;
+    {
+      flag_generate_lto = 1;
+      flag_fat_lto_objects = 1;
+    }
 
   /* If LTO is enabled, initialize the streamer hooks needed by GIMPLE.  */
   if (flag_generate_lto)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-14 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-14 17:27 [PATCH] Fix regressions in libgomp testsuite: set flag_fat_lto_objects for offload Ilya Verbin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).