This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/81387] UBSAN consumes too much memory at -O2
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jul 2017 08:33:14 +0000
- Subject: [Bug sanitizer/81387] UBSAN consumes too much memory at -O2
- Auto-submitted: auto-generated
- References: <bug-81387-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81387
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'm afraid it is unfixable, if you want smaller memory consumption, you either
need smaller routines, or use -fno-sanitize-recover=all, or do multiple builds
with selected subsets of -fsanitize=undefined, so that you don't have that many
checks in one function, or use -O1 on the larger functions to avoid many
optimizations that are e.g. quadratic in the number of basic blocks.
The UBSAN checks are many and especially if they are recoverable, they increase
the number of basic blocks way too much.