https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101980

--- Comment #5 from Ankur Saini <arsenic at gcc dot gnu.org> ---
(In reply to Hans-Peter Nilsson from comment #4)
> (In reply to Ankur Saini from comment #3)
> > Fixed after the following commits:
> > e92d0ff6b5e6d4b95c04fc3e326d40efeb136086
> > 537878152ded8b7d271333b803b36c27a9aea8d2
> 
> g++.dg/analyzer/pr96641.C, a regression introduced by this commit (or
> unlikely, another commit in the series 640df4ef815a..f0fca213bc52), remains
> to be fixed.
> It seems to fail everywhere:
> 
> s390x-ibm-linux-gnu
> https://gcc.gnu.org/pipermail/gcc-testresults/2021-August/716425.html
> 
> x86_64-pc-linux-gnu 3c496e92d795a8fe5c527e3c5b5a6606669ae50d
> https://gcc.gnu.org/pipermail/gcc-testresults/2021-August/716406.html
> 
> powerpc64-unknown-linux-gnu 6d692ef43b2b3368c92c3fb757c7884fc94ee627
> https://gcc.gnu.org/pipermail/gcc-testresults/2021-August/716400.html
> 
> powerpc64le-unknown-linux-gnu 3c496e92d795a8fe5c527e3c5b5a6606669ae50d
> https://gcc.gnu.org/pipermail/gcc-testresults/2021-August/716428.html
> 
> i686-pc-linux-gnu 6e5401e87d02919b0594e04f828892deef956407
> https://gcc.gnu.org/pipermail/gcc-testresults/2021-August/716332.html
> 
> powerpc-ibm-aix7.2.3.0 0312e263b6afa5b545c2d3b7c7ac5295ecaa7fa8
> https://gcc.gnu.org/pipermail/gcc-testresults/2021-August/716308.html
> 
> m68k-unknown-linux-gnu 192d4edd15c
> https://gcc.gnu.org/pipermail/gcc-testresults/2021-August/716297.html
> 
> For cris-elf, I see this in g++.log:
> /X/gcc/testsuite/g++.dg/analyzer/pr96641.C:8:3: warning: analysis bailed out
> early (91 'after-snode' enodes; 228 enodes) [-Wanalyzer-too-complex]

Thanks for pointing this out.
This is due to the fact that analyzer doesn't have a maximum recursion limit
when analysing dynamically discovered calls ( vfunc calls or calls that happen
via a function pointer ).

I have sent a patch on the patches list which should fix this problem.

- - -

Patch : https://gcc.gnu.org/pipermail/gcc-patches/2021-August/578091.html

Reply via email to