]> 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>
Fri, 22 Jun 2018 20:58:44 +0000 (22:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Jun 2018 20:58:44 +0000 (22:58 +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: r261939

gcc/ChangeLog
gcc/emit-rtl.c

index 6b8aba51fc242cc4c5f7ea16afd5c5bbf8a28409..95a00693a56cd9becbc53be6d665e8fefee31d70 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 0d25d4ec17ec7aea4696d3553b094c3c60096d03..3d47559ec0f8f6a5529fdb2b58438d30beca5018 100644 (file)
@@ -5851,7 +5851,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);