> Hi,
>
> PR 93015 testcase - an empty main function compiled with -O0 -fipa-vrp
> -flto - shows that IPA-VRA can segfault when trying to access results of
> an analysis that has not been performed because of zero optimization
> level, -fno-ipa-cp etc.
>
> Rather than adding another chain of opt_for_fn() the patch fixes it by
> what IPA-CP-BITS does, which is simply checking that info of a node is
> not NULL.
>
> Bootstrapped and tested on x86_64-linux. OK for trunk?
>
> Thanks,
>
> Martin
>
>
> 2019-12-20 Martin Jambor <mjam...@suse.cz>
>
> PR ipa/93015
> * ipa-cp.c (ipcp_store_vr_results): Check that info exists
>
> testsuite/
> * gcc.dg/lto/pr93015_0.c: New test.
OK,
thanks!
Honza