aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include/cpplib.h
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2020-11-12 19:56:07 +0100
committerMartin Jambor <mjambor@suse.cz>2020-11-12 19:56:22 +0100
commit25a0d08b7f979ab3c6e970e1eb966c1b5ddbe9ac (patch)
tree7200ece23ed2fd881e0d7c176b8945e460c4de98 /libcpp/include/cpplib.h
parentb86aedb0cc083efe712e530a723f1237051a6b56 (diff)
downloadgcc-25a0d08b7f979ab3c6e970e1eb966c1b5ddbe9ac.zip
gcc-25a0d08b7f979ab3c6e970e1eb966c1b5ddbe9ac.tar.gz
gcc-25a0d08b7f979ab3c6e970e1eb966c1b5ddbe9ac.tar.bz2
cgraph: Avoid segfault when attempting to dump NULL clone_info
cgraph_node::materialize_clone segfaulted when I tried compiling Tramp3D with -fdump-ipa-all because there was no clone_info - IPA-CP created a clone only for an aggregate constant, adding a note to its transformation summary but not creating any tree_map nor param_adjustements. Fixed with the following obvious extra checks which has passed bootstrap and testing on x86_64-linux. gcc/ChangeLog: 2020-11-12 Martin Jambor <mjambor@suse.cz> * cgraphclones.c (cgraph_node::materialize_clone): Check that clone info is not NULL before attempting to dump it.
Diffstat (limited to 'libcpp/include/cpplib.h')
0 files changed, 0 insertions, 0 deletions