re PR inline-asm/85022 (internal compiler error: in write_dependence_p, at alias...
authorJakub Jelinek <jakub@redhat.com>
Fri, 23 Mar 2018 20:55:40 +0000 (21:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 23 Mar 2018 20:55:40 +0000 (21:55 +0100)
PR inline-asm/85022
* emit-rtl.c (init_emit_regs): Indicate that VOIDmode MEMs don't have
known size by default.

From-SVN: r258823

gcc/ChangeLog
gcc/emit-rtl.c

index 2fd85d7889ddb51a14b179f7006c29893e26fc63..980768a2f5932a176b68072053ed5b258c638606 100644 (file)
@@ -1,3 +1,9 @@
+2018-03-23  Jakub Jelinek  <jakub@redhat.com>
+
+       PR inline-asm/85022
+       * emit-rtl.c (init_emit_regs): Indicate that VOIDmode MEMs don't have
+       known size by default.
+
 2018-03-23  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR inline-asm/85030
index 4dce18df04190395af4268d1252ba5fa32c326b3..613030fa8140e6d73f858a262b726bb346118761 100644 (file)
@@ -6152,7 +6152,7 @@ init_emit_regs (void)
       attrs = ggc_cleared_alloc<mem_attrs> ();
       attrs->align = BITS_PER_UNIT;
       attrs->addrspace = ADDR_SPACE_GENERIC;
-      if (mode != BLKmode)
+      if (mode != BLKmode && mode != VOIDmode)
        {
          attrs->size_known_p = true;
          attrs->size = GET_MODE_SIZE (mode);