]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR inline-asm/85022 (internal compiler error: in write_dependence_p...
authorJakub Jelinek <jakub@redhat.com>
Mon, 25 Jun 2018 17:39:11 +0000 (19:39 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 25 Jun 2018 17:39:11 +0000 (19:39 +0200)
Backported from mainline
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.

From-SVN: r262085

gcc/ChangeLog
gcc/emit-rtl.c

index 56fe27d04a45c70e1dd5f424d5b26f44d5e6b7cc..0227db7dafd8c9ed66713a7d61e5510c44b0ddd0 100644 (file)
@@ -3,6 +3,10 @@
        Backported from mainline
        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.
+
        PR inline-asm/85034
        * function.c (match_asm_constraints_1): Don't optimize if input
        doesn't satisfy general_operand predicate for output's mode.
index 0fcd9d95e5b412d3a1bd3758591794bb2ed2e78c..527665be97200e278e9c8ae87e165282b85fdae9 100644 (file)
@@ -5829,7 +5829,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);