aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/dump-parse-tree.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2025-05-13 09:56:13 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2025-05-14 07:52:32 -0700
commit1759734f1584a3db75c5a931bc1b144b7695b80a (patch)
tree5a6f296faf282311ab841f85d032907b0db5224e /gcc/fortran/dump-parse-tree.cc
parent398c6ddf1e81ba0cfd14a600ff8ceb4611fc8cf6 (diff)
downloadgcc-1759734f1584a3db75c5a931bc1b144b7695b80a.zip
gcc-1759734f1584a3db75c5a931bc1b144b7695b80a.tar.gz
gcc-1759734f1584a3db75c5a931bc1b144b7695b80a.tar.bz2
gimple: allow fold_stmt without setting cfun in case of GIMPLE_COND folding
This is the followup mentioned in https://gcc.gnu.org/pipermail/gcc-patches/2025-May/683444.html . It adds the check for cfun before accessing function specific flags. We handle the case where !cfun as conservative in that it the function might throw. gcc/ChangeLog: * gimple-fold.cc (replace_stmt_with_simplification): Check cfun before accessing cfun. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/fortran/dump-parse-tree.cc')
0 files changed, 0 insertions, 0 deletions