davidmalcolm / gcc-python-plugin

GCC plugin that embeds CPython inside the compiler
GNU General Public License v3.0
199 stars 58 forks source link

seemingly invalid "too complicated" error #53

Open davidmalcolm opened 7 years ago

davidmalcolm commented 7 years ago

When compiling gdb with gcc-with-cpychecker, I see:

../../src/gdb/python/python.c: In function ‘_initialize_python’: ../../src/gdb/python/python.c:1137:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed

In this instance, I think the error is quite strange; the function in question is completely linear (no "if"s or loops); there should be just a single path through it.

I can post the function body or the gcc -E output if that would help.