* expr.c (do_compare_and_jump): If op0 was replaced by promoted
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Nov 2000 06:55:42 +0000 (06:55 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Nov 2000 06:55:42 +0000 (06:55 +0000)
commit7f69ec60274065544b9dcf6026c875768508679a
tree6282616042a48c260b18e20e5cc6553258c6303f
parent951c8807f6c212425d0bd82acb320b01a0e2d438
* expr.c (do_compare_and_jump): If op0 was replaced by promoted
integer constant, use type of op1 for comparison.

* g++.old-deja/g++.other/inline17.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37605 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/inline17.C [new file with mode: 0644]