[Bug tree-optimization/123736] [13 Regression] ICE at -O1 with PGO on x86_64_linux-gnu: Segmentation fault
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 22 05:17:56 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123736
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:9cced3bc1848997aa51fbf2267c815d0b0025ea3
commit r13-10191-g9cced3bc1848997aa51fbf2267c815d0b0025ea3
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu Jan 22 10:11:34 2026 +0100
unswitch: Fix up one unguarded fprintf (dump_file, ...) [PR123736]
This dump message is not guarded on dump_file being non-NULL, so crashes
inside of libc if dump_file is NULL.
I think a message like that is usually guarded not just on dump_file
being non-NULL, but also on TDF_DETAILS set in dump_flags.
2026-01-22 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/123736
* tree-ssa-loop-unswitch.cc (hoist_guard): Guard dump message
on dump_file && (dump_flags & TDF_DETAILS) condition.
(cherry picked from commit 613fef9239aa723ea65b1118262bb63d023169c4)
More information about the Gcc-bugs
mailing list