aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-01-03 21:59:50 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-01-03 21:59:50 +0100
commite3bd17639b20e009238b15b2354bb0e87e29703e (patch)
treea58435136e940314c87eea77cd3f32c0de08343a /gcc/cfgexpand.c
parente3a174d0d1eef07442fca5867cfcdd05f3b845f8 (diff)
downloadgcc-e3bd17639b20e009238b15b2354bb0e87e29703e.zip
gcc-e3bd17639b20e009238b15b2354bb0e87e29703e.tar.gz
gcc-e3bd17639b20e009238b15b2354bb0e87e29703e.tar.bz2
re PR debug/83621 (ICE: in simplify_subreg, at simplify-rtx.c:6293 with -O -g)
PR debug/83621 * cfgexpand.c (expand_debug_expr): Return NULL if mode is BLKmode for ternary, binary or unary expressions. * gcc.dg/pr83621.c: New test. From-SVN: r256190
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index a7f3894..257ddfc 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -4208,6 +4208,8 @@ expand_debug_expr (tree exp)
binary:
case tcc_binary:
+ if (mode == BLKmode)
+ return NULL_RTX;
op1 = expand_debug_expr (TREE_OPERAND (exp, 1));
if (!op1)
return NULL_RTX;
@@ -4232,6 +4234,8 @@ expand_debug_expr (tree exp)
unary:
case tcc_unary:
+ if (mode == BLKmode)
+ return NULL_RTX;
inner_mode = TYPE_MODE (TREE_TYPE (TREE_OPERAND (exp, 0)));
op0 = expand_debug_expr (TREE_OPERAND (exp, 0));
if (!op0)