PR tree-optimization/47967
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Mar 2011 23:07:20 +0000 (23:07 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Mar 2011 23:07:20 +0000 (23:07 +0000)
commitf9e9b5741d681c672d96e3e349f8c2c88bf200cd
tree352a02c7c8b3eb836979f13b631297d4f3e7d3a6
parente06d1367cbf38964f6338ae969782032dd09b2ba
PR tree-optimization/47967
* ipa-cp.c (build_const_val): Return NULL instead of creating
VIEW_CONVERT_EXPR for mismatching sizes.
(ipcp_create_replace_map): Return NULL if build_const_val failed.
(ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
give up on versioning.

* gcc.c-torture/compile/pr47967.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170689 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr47967.c [new file with mode: 0644]