Hi Dave, Do you want me to follow the steps 7-10 (https://gcc-newbies-guide.readthedocs.io/en/latest/how-to-improve-the-location-of-a-diagnostic.html) or tell you where I add the code simply? Basically, I added warning_at (DECL_SOURCE_LOCATION (node->decl), 0, "hello world, I’m compiling %qE", node->decl); to the loop of cgraph_node inside impl_run_checkrs (logger *logger) of analyzer/engine.cc . (I also tried adding this code to cgraph_node::cgraphunit.cc in cgraphunit.cc , and then I found out the warning_at is different in that scope…but inform would work.) Best, Shengyu P.S. Shall I continue put mailing list in my cc? Not sure the community wants to receive that many GSoC related emails. > On 22 Feb 2023, at 16:43, David Malcolm wrote: > > Sorry, I was unclear; I was referring to this part of my guide: > https://gcc-newbies-guide.readthedocs.io/en/latest/getting-started.html#hello-world-from-the-compiler > > i.e. try writing a new warning that simply emits something like: > > test.c:2:1: warning: hello world, I'm compiling 'main' > 2 | int main () > | ^~~~ > > for each function that it sees.