re PR tree-optimization/63551 (wrong code (segfaults) at -Os on x86_64-linux-gnu)
authorMartin Jambor <mjambor@suse.cz>
Mon, 1 Dec 2014 12:05:41 +0000 (13:05 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 1 Dec 2014 12:05:41 +0000 (13:05 +0100)
commit64e5228e15ec4f5ccd9ba9ea309ddbeea678f447
tree01bfdf1c99d8e9258be4ae9df6c71221c857c54d
parentf37477e5098105e140d88f8cb767f5780ee71f1f
re PR tree-optimization/63551 (wrong code (segfaults) at -Os on x86_64-linux-gnu)

2014-12-01  Martin Jambor  <mjambor@suse.cz>

PR ipa/63551
* ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert
value of the argument to the type of the value in the condition.

testsuite/
* gcc.dg/ipa/pr63551.c: New test.
* gcc.dg/ipa/pr64041.c: Likewise.

From-SVN: r218205
gcc/ChangeLog
gcc/ipa-inline-analysis.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr63551.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/pr64041.c [new file with mode: 0644]