aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.c
diff options
context:
space:
mode:
authorSergei Trofimovich <siarheit@google.com>2020-07-25 19:26:50 +0100
committerSergei Trofimovich <siarheit@google.com>2020-07-28 23:19:00 +0100
commitcbf10ac51c0b889e930f260a3d1fb601332befdf (patch)
tree95169b2eda2b244bf69ce24ce299b1da4cec89c7 /gcc/fortran/trans-openmp.c
parent33bf56ddc6a757d2066a50dd9ce8323b379a2a0a (diff)
downloadgcc-cbf10ac51c0b889e930f260a3d1fb601332befdf.zip
gcc-cbf10ac51c0b889e930f260a3d1fb601332befdf.tar.gz
gcc-cbf10ac51c0b889e930f260a3d1fb601332befdf.tar.bz2
ipa/96291: don't crash on unoptimized lto functions
In PR ipa/96291 the test contained an SCC with one unoptimized function. This tricked ipa-cp into NULL dereference. has_undead_caller_from_outside_scc_p() did not take into account that unoptimized funtions don't have IPA summary analysis. And dereferenced NULL pointer causing an ICE. gcc/ PR ipa/96291 * ipa-cp.c (has_undead_caller_from_outside_scc_p): Consider unoptimized callers as undead. gcc/testsuite/ PR ipa/96291 * gcc.dg/lto/pr96291_0.c: New testcase. * gcc.dg/lto/pr96291_1.c: Support file. * gcc.dg/lto/pr96291_2.c: Likewise. * gcc.dg/lto/pr96291.h: Likewise.
Diffstat (limited to 'gcc/fortran/trans-openmp.c')
0 files changed, 0 insertions, 0 deletions