https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89490

--- Comment #15 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
I wonder if this would also work?
At least for simple test cases that seems to be fine.

--- varasm.c.orig       2019-01-25 17:57:32.000000000 +0100
+++ varasm.c    2019-02-26 22:03:39.753325517 +0100
@@ -373,6 +373,9 @@ get_block_for_section (section *sect)
   if (sect == NULL)
     return NULL;

+  if (sect->common.flags & SECTION_MERGE)
+    return NULL;
+
   object_block **slot
     = object_block_htab->find_slot_with_hash (sect, hash_section (sect),
                                              INSERT);

Reply via email to