PR debug/45003
commitda70b5e3e4d4a90047bee41f9802539217e7d6ee
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jul 2010 12:58:03 +0000 (20 12:58 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jul 2010 12:58:03 +0000 (20 12:58 +0000)
tree192f1761f965d8bc4c32c0ae966d552d036bd763
parentec396ca355d0a4366de7871b0a6806a359dc2bb5
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162336 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr45003-1.c [new file with mode: 0644]