This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [asan, tsan] Don't ICE with -Og -fsanitize=address
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Dodji Seketeli <dseketel at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 27 Nov 2012 15:12:32 +0100
- Subject: Re: [asan, tsan] Don't ICE with -Og -fsanitize=address
- References: <20121127140952.GC2315@tucnak.redhat.com>
On Tue, Nov 27, 2012 at 3:09 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> 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?
Ok.
Thanks,
Richard.
> 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