This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[asan, tsan] Don't ICE with -Og -fsanitize=address
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Dodji Seketeli <dseketel at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 27 Nov 2012 15:09:52 +0100
- Subject: [asan, tsan] Don't ICE with -Og -fsanitize=address
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
I've noticed we don't schedule asan/tsan passes for -Og, which results in
ICEs. For -O0 that is handled by pass_[at]san_O0, but for -Og which also
doesn't use the normal optimization queue there is nothing.
Ok for trunk?
2012-11-27 Jakub Jelinek <jakub@redhat.com>
* passes.c (init_optimization_passes): Add pass_asan and pass_tsan
to -Og optimization passes.
--- gcc/passes.c.jj 2012-11-27 12:08:02.000000000 +0100
+++ gcc/passes.c 2012-11-27 15:04:59.722410179 +0100
@@ -1536,6 +1536,8 @@ init_optimization_passes (void)
/* Copy propagation also copy-propagates constants, this is necessary
to forward object-size results properly. */
NEXT_PASS (pass_copy_prop);
+ NEXT_PASS (pass_asan);
+ NEXT_PASS (pass_tsan);
NEXT_PASS (pass_rename_ssa_copies);
NEXT_PASS (pass_dce);
/* Fold remaining builtins. */
Jakub