[Bug sanitizer/94910] detect_stack_use_after_return=1 is much slower than clang's

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 18 10:39:08 GMT 2020


--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #5)
> > FakeStack (stack_size_log=20):bail out after 8192
> > FakeStack (stack_size_log=20):bail out after 16384
> > FakeStack (stack_size_log=20):bail out after 4096
> > FakeStack (stack_size_log=20):bail out after 8192
> > ...
> This comes after the 27000 success Fake stack allocations.

I guess the important question is what is different with clang that it behaves
differently, whether it allocates fake stack for fewer functions, or what else.
 E.g. try ltrace on it to see how many each one allocates and if it is very
different, it would be nice to understand why.

More information about the Gcc-bugs mailing list