ipa/98330 - avoid ICEing on call indirect call
authorRichard Biener <rguenther@suse.de>
Tue, 19 Jan 2021 13:21:41 +0000 (14:21 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 19 Jan 2021 13:32:25 +0000 (14:32 +0100)
commit66dd412feeab29783fcdcf7ab36f20c5dd7b2332
treea077959253ac3ac7378924674fb17b507347150d
parentf27cd6f42261e838677dfd0652f09cc0dfd6a42b
ipa/98330 - avoid ICEing on call indirect call

The following avoids ICEing on a indirect calls with a fnspec
in modref analysis.

2021-01-19  Richard Biener  <rguenther@suse.de>

PR ipa/98330
* ipa-modref.c (analyze_stmt): Only record a summary for a
direct call.

* g++.dg/pr98330.C: New testcase.
* gcc.dg/pr98330.c: Likewise.
gcc/ipa-modref.c
gcc/testsuite/g++.dg/pr98330.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr98330.c [new file with mode: 0644]