PR c/80163
commit6f757bccd70845f86f759bde1ace2adb355cc7ac
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Apr 2017 13:57:45 +0000 (12 13:57 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Apr 2017 13:57:45 +0000 (12 13:57 +0000)
tree3ee9c7544c16c0adf77cb08020ba136611a605cf
parent1bcbd566cc98b51f757dbaf993dcced045ebc93e
PR c/80163
* expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
vs. ZERO_EXTEND based on signedness of treeop0's type rather than
signedness of the result type.

* gcc.dg/torture/pr80163.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246876 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr80163.c [new file with mode: 0644]