From 532c7a45847f3401e26fa2f07e52613891c80718 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 23 Mar 2018 21:55:40 +0100 Subject: [PATCH] re PR inline-asm/85022 (internal compiler error: in write_dependence_p, at alias.c:3003) 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 | 6 ++++++ gcc/emit-rtl.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2fd85d7889d..980768a2f59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-03-23 Jakub Jelinek + + 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 PR inline-asm/85030 diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 4dce18df041..613030fa814 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -6152,7 +6152,7 @@ init_emit_regs (void) attrs = ggc_cleared_alloc (); 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); -- 2.30.2