re PR tree-optimization/47967 (ICE: verify_stmts failed: conversion of register to...
authorJakub Jelinek <jakub@redhat.com>
Fri, 4 Mar 2011 23:07:20 +0000 (00:07 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 4 Mar 2011 23:07:20 +0000 (00:07 +0100)
commitcc58ceee5d9c24c0aaad45d94de3c5ffcf55f63c
tree352a02c7c8b3eb836979f13b631297d4f3e7d3a6
parentea868305675efc1aab86644c80b8f23228b813f8
re PR tree-optimization/47967 (ICE: verify_stmts failed: conversion of register to a different size with -fipa-cp on undefined code)

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.

From-SVN: r170689
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr47967.c [new file with mode: 0644]