Re: [committed] analyzer: add -fdump-analyzer-json

2020-09-22 Thread Tobias Burnus
This patch breaks the cross build here: ...gcc/analyzer/engine.cc:65:10: fatal error: zlib.h: No such file or directory I think you need to do something similar in Makefile.in as lto-compress has: # lto-compress.o needs $(ZLIBINC) added to the include flags. CFLAGS-lto-compress.o += $(ZLIBINC) $

[committed] analyzer: add -fdump-analyzer-json

2020-09-22 Thread David Malcolm via Gcc-patches
I've found this useful for debugging state explosions in the analyzer. Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to master as 809192e77e6e112a0fe32dee7fada7a49fbf25cd. gcc/analyzer/ChangeLog: * analysis-plan.cc: Include "json.h". * analyzer.opt (fdump-a