re PR debug/45003 (VTA issues with sign/zero extension and debug temporaries)
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Jul 2010 12:58:03 +0000 (14:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Jul 2010 12:58:03 +0000 (14:58 +0200)
commit68eaf35cdb86ba13abb14330cc2a4a9b266242ef
tree192f1761f965d8bc4c32c0ae966d552d036bd763
parent720151cabda2a56418b32c1b048de33670641e45
re PR debug/45003 (VTA issues with sign/zero extension and debug temporaries)

PR debug/45003
* cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
instead of the result's type.

* gcc.dg/guality/pr45003-1.c: New test.

From-SVN: r162336
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr45003-1.c [new file with mode: 0644]