re PR ipa/68057 (450.soplex in SPEC CPU 2006 failed to build)
authorJan Hubicka <hubicka@ucw.cz>
Fri, 6 Nov 2015 16:04:38 +0000 (17:04 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 6 Nov 2015 16:04:38 +0000 (16:04 +0000)
commit567700fddd2cbc1d90bb8f2acae81b3210dba2fb
tree3f1b62e0829f2a22ffd60ffa7837118243d314e2
parent563407398727d5943aa1b16320483d9e275cc11d
re PR ipa/68057 (450.soplex in SPEC CPU 2006 failed to build)

PR ipa/68057
PR ipa/68220
* ipa-polymorphic-call.c
(ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
issue when offset is out of range.
(contains_type_p): Fix out of range check, clear dynamic flag.
* g++.dg/lto/pr68057_0.C: New testcase.
* g++.dg/lto/pr68057_1.C: New testcase.
* g++.dg/torture/pr68220.C: New testcase.

From-SVN: r229859
gcc/ChangeLog
gcc/ipa-polymorphic-call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr68057_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr68057_1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/pr68220.C [new file with mode: 0644]