re PR debug/46893 (ICE: in trunc_int_for_mode, at explow.c:56 with -O -g)
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Dec 2010 17:14:30 +0000 (18:14 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 16 Dec 2010 17:14:30 +0000 (18:14 +0100)
commit9712cba0068a0afe871a49c455d104efcb8260a0
treede478140bbdd4bf6281015cd3100d7c793239653
parent8f2cbdcac708467b11b9c8d5405a18bd1a8f3ba3
re PR debug/46893 (ICE: in trunc_int_for_mode, at explow.c:56 with -O -g)

PR debug/46893
* cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.

* gcc.dg/pr46893.c: New test.

From-SVN: r167949
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr46893.c [new file with mode: 0644]