From 1c79aebe2fe0818c0c434e2f0b3d7297e568ce45 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 13 May 2020 08:53:32 -0400 Subject: [PATCH 117/179] FIXME: set input_location in exploded_node::on_stmt (probably good as a standalone patch) --- gcc/analyzer/engine.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/analyzer/engine.cc b/gcc/analyzer/engine.cc index cb156916a07..e0b9671622d 100644 --- a/gcc/analyzer/engine.cc +++ b/gcc/analyzer/engine.cc @@ -1456,6 +1456,10 @@ exploded_node::on_stmt (exploded_graph &eg, logger->end_log_line (); } + /* Update input_location in case of ICE: make it easier to track down which + source construct we're failing to handle. */ + input_location = stmt->location; + if (state->m_revamp_state) { if (state->m_revamp_state->on_stmt (eg.get_ext_state (), snode, stmt)) -- 2.21.0