aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-expand.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-10-07 07:22:43 +0200
committerTom de Vries <tdevries@suse.de>2020-10-07 08:06:47 +0200
commitebc77ce3a4c70730b4e38d68f88693eadbdc8712 (patch)
treeee96038d8e3b6d4663bd1df5d59ab410ab387655 /gcc/omp-expand.c
parent8e97b9052dbe0ead25019d4b37490f285d1f9c94 (diff)
downloadgcc-ebc77ce3a4c70730b4e38d68f88693eadbdc8712.zip
gcc-ebc77ce3a4c70730b4e38d68f88693eadbdc8712.tar.gz
gcc-ebc77ce3a4c70730b4e38d68f88693eadbdc8712.tar.bz2
[tree-ssa-loop-ch] Add missing NULL test for dump_file
If we change gimple_can_duplicate_bb_p to return false instead of true, we run into a segfault in ch_base::copy_headers due to using dump_file while it's NULL: ... if (!gimple_duplicate_sese_region (entry, exit, bbs, n_bbs, copied_bbs, true)) { fprintf (dump_file, "Duplication failed.\n"); continue; } ... Fix this by adding the missing dump_file != NULL test. Tested by rebuilding lto1 and rerunning the failing test-case. gcc/ChangeLog: 2020-10-07 Tom de Vries <tdevries@suse.de> * tree-ssa-loop-ch.c (ch_base::copy_headers): Add missing NULL test for dump_file.
Diffstat (limited to 'gcc/omp-expand.c')
0 files changed, 0 insertions, 0 deletions