[Bug sanitizer/83356] [7 Regression] excessive stack usage compiling with -O2 -fsanitize=bounds -fsanitize=object-size

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 18 14:33:00 GMT 2017


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
(I believe they eventually abort (), right?) so we can't

Well, not abort, either runtime error message + die, or runtime error message +
continue, or __builtin_trap depending on options.

> Maybe sanitize instrumentation can also be more clever avoiding all the
> redundancies...  (seems to happen on GENERIC already for BOUNDS).

The sanopt pass removes the redundancies that can be removed.


More information about the Gcc-bugs mailing list