]> gcc.gnu.org Git - gcc.git/commit
cfgexpand: Handle WIDEN_{PLUS,MINUS}_EXPR and VEC_WIDEN_{PLUS,MINUS}_{HI,LO}_EXPR...
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Mar 2023 09:26:46 +0000 (10:26 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sun, 19 Mar 2023 05:28:53 +0000 (06:28 +0100)
commit7b9e837e769474fa5e91958dd2a479837b1176cb
tree7a1bfa6987c489e54b7dc87450c08c1c7d80d739
parent467a789b0c5e50676bb7e65f861b9d79e0c9fe4c
cfgexpand: Handle WIDEN_{PLUS,MINUS}_EXPR and VEC_WIDEN_{PLUS,MINUS}_{HI,LO}_EXPR in expand_debug_expr [PR108967]

When these tree codes were introduced, expand_debug_expr hasn't been
updated to handle them.  For the VEC_*_EXPR we currently mostly punt, the
non-vector ones can be handled easily.  In release compilers this doesn't
ICE, but with checking we ICE so that we make sure to handle all the needed
tree codes there.

2023-03-01  Jakub Jelinek  <jakub@redhat.com>

PR debug/108967
* cfgexpand.cc (expand_debug_expr): Handle WIDEN_{PLUS,MINUS}_EXPR
and VEC_WIDEN_{PLUS,MINUS}_{HI,LO}_EXPR.

* g++.dg/debug/pr108967.C: New test.

(cherry picked from commit 520403f324a6ed8b527f39239709dd0841b992e2)
gcc/cfgexpand.cc
gcc/testsuite/g++.dg/debug/pr108967.C [new file with mode: 0644]
This page took 0.055257 seconds and 5 git commands to generate.